Package: Db\Migration
Manages database migrations (both upgrades and downgrades).
Name of the migrations table.
Formatting string to convert dates into YYYYMMDDHHMMSS pattern.
Name of the original database option storing the integer migration number.
Name of the new database option storing the core software version number.
Directory where migrations scripts are kept.
Parameters: |
|
---|
Set up Omeka to use timestamped database migrations.
This creates the ‘schema_migrations’ table, drops the ‘migration’ optionand adds the ‘omeka_version’ option to the database.
Returns: | void |
---|
Mark all of the migrations as having been run. Used by the installer as a way of indicating that the database is entirely up to date.
Returns: | void |
---|
Migrate the database schema.
Parameters: |
|
---|---|
Returns: | void |
Determine whether or not it is possible to migrate the Omeka database up.
This is based entirely on whether there exist any migrations that havenot yet been applied.
Returns: | void |
---|
Determine whether the database must be upgraded.
In order to return true, this requires that canUprade() == true, and also that Omeka’s code has recently been upgraded.
Finalize the database upgrade by setting the most up-to-date version of Omeka.
Return the default configuration of the database migration manager.
Parameters: |
|
---|---|
Returns: | Omeka_Db_Migration_Manager |
Retrieve all the versions that have been migrated.
Returns: | array |
---|
Return the name of the table associated with schema migrations.
Returns: | string |
---|
Return a list of migration files in the migration directory.
Returns: | array An associative array where key = timestamp of migration, value = full filename of the migration. |
---|
Migrate upwards to a specific timestamp.
Parameters: |
|
---|---|
Returns: | void |
Require the migration file and return an instance of the class associated with it.
Parameters: |
|
---|---|
Returns: | Omeka_Db_Migration_AbstractMigration |
Retrieve a list of all migrations that have not been run yet, ending at the latest time given by $until.
Parameters: |
|
---|---|
Returns: | array |
Record the migration timestamp in the schema_migrations table.
Parameters: |
|
---|---|
Returns: | void |