Omeka_Db_Migration_AbstractMigration

class Omeka_Db_Migration_AbstractMigration

Package: Db\Migration

Database migration classes may inherit from this one.

property db
setDb(Omeka_Db $db)

Set the database to migrate.

Parameters:
Returns:

void

getDb()
Returns:Omeka_Db
down()

Template method for reversing the migration.

This is defined as a template method instead of leaving it abstract becausepre-existing implementations of Omeka_Db_Migration were not required toimplement the down() method. This ensures backwards compatibility forthose migrations.

__call(string $m, array $a)

Proxy calls to Omeka_Db.

Allows migration writers to call db methods directly on $this.

Parameters:
  • $m (string) – Method name.
  • $a (array) – Method arguments.
form()

If the migration requires a form submission, here’s where to handle display of it

Returns:void
up()