The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:
Linter that validates every Liquibase changelog file under resources/migrations/ against a spec. This lets us check
and enforce additional constraints (e.g. make sure you're not using duplicate migration IDs, or including more than
one change in a single changeSet), plus the file-layout rules:
resources/migrations/<year>/<yyyymmdd>_<name>.yaml-- the current layout: version-less ids (lower-case letters, digits and underscores, at least one letter, no leadingv, no ISO date/timestamp like the oldvNN.2024-03-18T16:00:00ids). The version a changeset ships in is decided by the branch it is merged into.resources/migrations/0NN/…and0NN_update_migrations.yaml-- the older versioned layouts, whose ids carry the major (vNN.…). Versioned ids are refused from v67 on (first-versionless-major). New changesets are version-less on every branch, including the release branches of earlier majors, whose patch releases get version-less support backported.
Older/existing migrations are validated with a less-strict spec; newer ones use a stricter spec that enforces some
additional constraints. The less-strict specs are in x.unstrict namespaces while equivalent stricter ones are in
x.strict namespaces. See .claude/skills/app-db-migrations/SKILL.md for the rules as a checklist.
Run the linter with
./bin/lint-migrations-file.sh
Add some tests for the checks you add here the test/ directory; run them with
cd bin/lint-migrations-file
clojure -M:test