Arcana::DB::Migrate
Tiny migration runner.
Walks db/migrations/*.sql in lexicographic order, applies any
that haven't been recorded in the schema_migrations table, and
tracks them as applied. Each migration runs in a transaction.
Filename convention: <timestamp>_<description>.sql, e.g.
db/migrations/20260427_001_init_auth.sql
The leading numeric prefix determines order. The full filename is the unique key recorded in schema_migrations, so renames break things — don't rename applied migrations.
Constants
Record table that tracks which migrations have been applied.
Class methods
Default location for migration files. Prefer the install prefix
(/usr/share/arcana/db/migrations) so packaged runs work from any
CWD. Fall back to a CWD-relative path only when running inside a
source checkout (detected via shard.yml).