@layeron/migrations
v0.1.0
Published
Migration planner and applier for Layeron database resources.
Readme
@layeron/migrations
@layeron/migrations plans and applies versioned SQL migrations for Layeron
db modules.
The migration model follows the same safety shape as Supabase migrations:
- SQL migrations are versioned and ordered.
- Applied migrations are recorded in a database ledger.
- Applied migration checksums are immutable.
- Production deploys apply pending migrations in order.
- Destructive SQL is blocked unless the apply path explicitly allows it.
- Rollback is represented by a new forward migration.
This package owns migration safety and ledger behavior. Provider drivers and dev servers provide concrete database execution.
