Baleen\Migrations\Delta\Delta\Delta\DeltaInterface

interface DeltaInterface

Holds meta information about a migration, especially that which is related to its status (i.e. anything that can’t be stored in the migration itself).

toString()

Returns the ID of the version.

Returns:string
isMigrated()

Returns whether the version has been migrated or not.

Returns:mixed
setMigrated($migrated)

Sets whether the version has already been migrated or not.

Parameters:
  • $migrated
setMigration(MigrationInterface $migration)

Sets the migration class this version corresponds to.

Parameters:
Returns:

mixed

getMigration()

Returns the migration associated with this version.

Returns:null|MigrationInterface