for MongoDB.
This command provides support for tracking the migration history, upgrading
or downloading with migrations, and creating new migration skeletons.
The migration history is stored in a MongoDB collection named
as [[migrationCollection]]. This collection will be automatically created the first time
this command is executed, if it does not exist.
In order to enable this command you should adjust the configuration of your console application:
Since 2.1.2, in case of usage Yii version >= 2.0.10, you can use namespaced migrations. In order to enable this
feature you should configure [[migrationNamespaces]] property for the controller at application configuration:
addMigrationHistory()
protected méthode
ensureBaseMigrationHistory()
protected méthode
Ensures migration history contains at least base migration entry.
getMigrationHistory()
protected méthode
removeMigrationHistory()
protected méthode