Supabee.

Workflows

Migration management

Detect cutoffs, audit SQL classifications, and split migrations that mix schema and data operations.

For command options and examples, see migration audit, migration mark, migration unmark, and migration split.

Supabee classifies migration files as schema, data, mixed, or unknown. Classification is based on SQL patterns and can be overridden with marker comments.

Audit migrations

Review the current classifications and suggested actions:

supabee migration audit
supabee migration audit --verbose

Use JSON output for scripts and CI:

supabee migration audit --json

Add or remove markers

Add suggested classification markers interactively:

supabee migration mark

Preview changes or apply them non-interactively:

supabee migration mark --dry-run
supabee migration mark --yes

Remove existing markers with the equivalent unmark workflow:

supabee migration unmark
supabee migration unmark --dry-run

Split mixed migrations

A post-cutoff migration containing both schema changes and data mutations cannot be safely moved as one unit. The standalone command uses the same cutoff resolution as reset and selects mixed migrations strictly after it. Preview its rewrite plan:

supabee migration split --dry-run

Apply the plan after interactive confirmation:

supabee migration split

Use --all to include older mixed migrations explicitly; this still refuses to rewrite versions already applied on the linked remote.

Detect the cutoff

When no timestamp is provided, Supabee compares local and linked migration histories and selects the latest migration version present in both.

supabee cutoff detect
supabee cutoff detect --env staging
supabee cutoff detect 20260309180959 --json

When linked detection succeeds, the result is saved to postSeedCutoff or the matching postSeedCutoffByEnv entry in supabee.config.json.