A database migration package based on Phinx for ThinkPHP
A database migration package based on Phinx for ThinkPHP.
Note: This package is only compatible with ThinkPHP5.1 now.
$ composer require codesinging/pin-migration -vvv
After you installed this package, you should firstly initialize the configuration by run:
php think migrate:init
This command will create a configuration file named
migration.php in the config directory.
||Initialize migration configuration|
||Create a new migration|
||Rollback and re-run all migrations|
||Rollback all migrations|
||Rollback the last or to a specific migration|
||Migrate the database|
||Show migration status|
||Verify the configuration file|
||Create a new database seeder|
||Run database seeders|
You can contribute in one of three ways:
- File bug reports using the issue tracker.
- Answer questions or fix bugs on the issue tracker.
- Contribute new features or update the wiki.
The code contribution process is not very formal. You just need to make sure that you follow the PSR-0, PSR-1, and PSR-2 coding guidelines. Any new code contributions must be accompanied by unit tests where applicable.