db commit
Commit session migrations for deployment.
Usage
postkit db commit [-f]
Options
| Option | Description |
|---|---|
-f | Skip confirmation prompts |
-v, --verbose | Enable verbose output |
--json | Output as JSON |
What It Does
- Prompts for a migration description
- Merges all session migrations from
.postkit/db/session/into a single migration file - Writes the committed migration to
.postkit/db/migrations/ - Updates
.postkit/db/committed.jsonto track the committed migration - Cleans up session files
Requirements
- An active session must exist
- Session migrations must exist (run
db applyat least once)