Expand description
Embedded database migrations.
The migrations under migrations/ are baked into the binary at compile time, so cortex init
(and any deployment) can self-migrate the database with no diesel_cli on the host.
Constants§
- MIGRATIONS
- The set of migrations compiled into the binary (from the
migrations/directory).
Functions§
- has_
pending_ migrations - Returns whether the database has any pending (un-applied) migrations.
- run_
pending_ migrations - Applies all pending migrations, returning the versions applied (empty when already current).