MigrationInterface
interface MigrationInterface (View source)
Contract for a one-way database migration.
The identifier gives a migration its stable identity and determines its execution order. The migration applies its schema changes through the existing Schema API.
Methods
Returns a stable YYYYMMDDHHMMSS_description identifier.
string
Details
identifier
static string
identifier()
Returns a stable YYYYMMDDHHMMSS_description identifier.
An identifier must not change after the migration has been applied.
up
void
up(Schema $schema)
Applies the schema change.
The framework does not provide automatic rollback or guarantee DDL atomicity.