Skip to content
Sarj Repo Standards

migration-consolidation

Review multiple new SQL migrations per stream.

Examples

One new logical SQL revision per stream

Before — rejected · warning
{"base":[],"head":["db/migrations/001.sql","db/migrations/002.sql"]}
After — preferred
{"base":[],"head":["db/migrations/001.sql"]}

Enable this rule

Add the stable ID to enabled_rules in your tracked .repo-standards/repository.toml:

enabled_rules = ["repository/artifacts/migration-consolidation"]

This selects only this rule. To retain the defaults, also include repository/artifacts/untyped-javascript and repository/artifacts/bespoke-iac-verifiers, along with any existing IDs. Omitted or empty selections use the defaults. Setup and staged checks