CLIError codes
BASELINE_LOCK_RELEASED
The schema lock was released before `nextly migrate:baseline` adopted the database, so nothing was written.
Cause
The schema lock was released before nextly migrate:baseline adopted the database, so nothing was written.
nextly migrate:baseline takes the schema lock before it writes the baseline migration and records it as applied. The lock was released before that work ran, so the command stopped rather than report a baseline it never wrote.
Fix
- Run
nextly migrate:baselineagain once no other schema operation, such asnextly migrateordb:sync, is running. - If it keeps happening, run
nextly migrate:statusto check nothing else is changing the schema.
Example
✗ The migrate lock was released without adopting the database.
Why: Nothing was written.
Next: Retry once no other schema operation is running.
Docs: https://nextlyhq.com/docs/cli/errors/baseline-lock-released (BASELINE_LOCK_RELEASED)