| Returns | Name | Description |
|---|---|---|
| addChange | ||
| addColumn | ||
| addIndex | ||
| changeColumn | renameColumn | |
| createConstraint | ||
| createForeignKey | ||
| createMigrationTable | Creates the migration table used to store the current version | |
| createTable | ||
| doMigrate | Perform migration for a migration class. Executes the up or down method then processes the changes | |
| doMigrateStep | Perform migration directory for the specified version. Loads migration classes and performs the migration then processes the changes | |
| dropConstraint | ||
| dropForeignKey | ||
| dropTable | ||
| getCurrentVersion | Get the current version of the database | |
| getLatestVersion | Gets the latest possible version from the loaded migration classes | |
| getMigrationClass | Get instance of migration class for $num | |
| getMigrationClasses | ||
| integer | getNextVersion | |
| getTableName | ||
| hasMigrated | Returns true/false for whether or not this database has been migrated in the past | |
| loadMigrationClasses | Loads the migration classes for the directory specified by the constructor | |
| loadMigrationClassesFromDirectory | refactored out from loadMigrationClasses $param array An array of classes | |
| migrate | Perform a migration chain by specifying the $from and $to. If you do not specify a $from or $to then it will attempt to migrate from the current version to the latest version | |
| postDown | ||
| postUp | ||
| preDown | ||
| preUp | ||
| removeColumn | ||
| removeIndex | ||
| renameColumn | ||
| renameTable | ||
| setCurrentVersion | Sets the current version in the migration table | |
| setTableName | ||
| __construct | construct Specify the path to the directory with the migration classes. The classes will be loaded and the migration table will be created if it does not already exist |
renameColumn
Creates the migration table used to store the current version
Perform migration for a migration class. Executes the up or down method then processes the changes
Perform migration directory for the specified version. Loads migration classes and performs the migration then processes the changes
Get the current version of the database
Gets the latest possible version from the loaded migration classes
Get instance of migration class for $num
Returns true/false for whether or not this database has been migrated in the past
Loads the migration classes for the directory specified by the constructor
refactored out from loadMigrationClasses $param array An array of classes
Perform a migration chain by specifying the $from and $to. If you do not specify a $from or $to then it will attempt to migrate from the current version to the latest version
Sets the current version in the migration table
construct
Specify the path to the directory with the migration classes. The classes will be loaded and the migration table will be created if it does not already exist