Docs/Commands/baseline
OSSgenerated from cli/_parser_setup.py

dblift baseline

Mark an existing database as already at a given version. Baseline records one entry in the schema history table, and any migration whose version is at or below the baseline is then skipped on this database rather than applied.

Synopsis

$ dblift baseline --baseline-version VERSION
                 [--baseline-description TEXT] [--table TABLE]

Options

FlagDescription
--tableCustom schema history table name (default: dblift_schema_history)
--baseline-versionVersion to baseline the database at
--baseline-descriptionDescription for the baseline version

Global flags apply to every command: --config, --env, --scripts, --dry-run, --quiet, --log-level. See global flags.

Examples

Adopt a production database that is already at 2.3.0

$ dblift baseline --baseline-version 2.3.0

Record why the baseline was set

$ dblift baseline --baseline-version 2.3.0 --baseline-description "Adopted from Flyway, 2026-06-02"

Exit codes

CodeMeaning
0Command completed successfully
4A paid-edition feature was invoked without a valid licence (EXIT_LICENSE_REQUIRED)
On this page