Skip to content

[Deprecated] Simple command line tool to help with db/code migrations.

Notifications You must be signed in to change notification settings

Jmayhak/alligator-gar-migrations

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stories in Ready Alligator Gar Migrations

Simple command line tool to help with db/code migrations.

Alligator Gar

Everything is about as basic as it gets.

php ./deploy.php /path/to/deploy/scripts/ 3

The tool will look for a hidden file called ".current_version" in the path specified to see the … current version. It will then either run all the "up" (if the current version > the version you'd like) or "down" (vice-versa) in the *.json files.

{
	"up":[
    	"svn up file.php -r 3"
	],
	"down":[
		"svn revert file.php -r 2"
	]
}

The above is an example of a *.json file. The json files must be numeric. ie. 1.json, 2.json, etc.

The tool will simply go through each version and run either the "up" or "down" commands.

It's named "Alligator Gar" Migrations because the teeth are sharp. The commands are executed via the php "exec()" function. So, there's nothing stopping "rm -rf /"

About

[Deprecated] Simple command line tool to help with db/code migrations.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages