[DRAFT]This page is not published. Only visible in development mode.

Migrations

Migrations version your schema changes. Each migration has a name and a body, and optionally a rollback block.

Create a Migration

$ Create Migration
$ ctrl+enter to run

Define a migration with a name string and a body containing schema changes. Run MIGRATE to apply all pending migrations.

Rollback Support

$ Migration with Rollback
$ ctrl+enter to run

Add a ROLLBACK block to define how to undo the migration. Use ROLLBACK MIGRATION to revert the last applied migration.