Skip to main content

db migration

Create a manual SQL migration file in the session directory.

Usage

postkit db migration [<name>]

Options

OptionDescription
<name>Migration name (optional)
-v, --verboseEnable verbose output
--jsonOutput as JSON

Examples

# Create migration with auto-generated name
postkit db migration

# Create migration with custom name
postkit db migration add_users_table

What It Does

Creates a new SQL file in .postkit/db/session/ with a timestamp-based filename.

  • apply - Apply migrations locally
  • commit - Commit migrations