migratekit

command
v1.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 27, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Command migratekit is the operator's side of migration identity: it explains a boot refusal and resolves it.

The library refuses to apply a chain whose ledger disagrees with the files, which is right — the alternative is a migration that silently never runs. But a refusal with no resolution path is a headache: the operator is left with psql and a hand-written UPDATE against public.migrations. This command is the missing half.

migratekit status  -app tensorhub -dir migrations/postgres
migratekit repair adopt 42 --reason "restored 2026-08-10 backup"
migratekit repair accept-content 7 --reason "comment typo, DDL unchanged"
migratekit apply --allow-below-applied 91 --reason "backport of th#1712"
migratekit history -app tensorhub

Every repair writes an audit row (who, when, verb, reason, old and new identity) and touches only the ledger's identity columns — never schema.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL