A complete platform for building web applications.

Creator migrate

Migrate all migration files to database or only the passed value, by default the third parameter is up you can rollback the migration by passed down.

php creator migrate [version number | migration name] [up | down]

Examples

  • php creator migrate

    Migrate all migration files to database.

  • php creator migrate 20160901000000

    Migrate this file 20160901000000_ertikazos.php to database.

  • php creator migrate ertikazos

    It will search for any migrations file end with _ertikazos.php, it equal to php creator migrate 20160901000000.

  • php creator migrate "*" down

    Rollback all migration files from database.