Recommend this page to a friend! |
Download .zip |
Info | Documentation | View files (4) | Download .zip | Reputation | Support forum | Blog | Links |
Ratings | Unique User Downloads | Download Rankings | ||||
Not yet rated by the users | Total: 115 | All time: 9,381 This week: 124 |
Version | License | PHP version | Categories | |||
db-migration 1.0 | GNU General Publi... | 5 | PHP 5, Databases, Systems administration |
Description | Author | |
This package can migrate MySQL database tables with given SQL files. |
Migration Class to help automatization
The migration Class is a command line php utility and it helps to automatizate database changings and its migrations. It is useful for example to create a Continous Integration environment. The sqlauto directory containts an init script and some mysql stored procedures.
Usage:
put mysql migration files into the sqlauto directory file name conventions:
- start with sql + iso date format (YYYYMMDD)
- should end with .sql
Run:
/usr/local/bin/php migration_runner.php --host=127.0.0.1 --database=bl_model_unit --user=root --password=345+4 --forceload=1 --droptables=1
input parameters:
--host
the mysql database host
--database
the mysql database name
--user
the mysql database user
--password
the mysql database password
--forceload
it will load all sql files into the database, ignore the .migrated file content
--droptables
it will drop all tables inside the database
Files |
File | Role | Description | ||
---|---|---|---|---|
sqlauto (1 file) | ||||
LICENSE | Lic. | License text | ||
migration_runner.php | Class | Class source | ||
README.md | Doc. | Documentation |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.