Repository navigation
v0.1.3
A release of the schemity command line tool and the Schemity Migration Check action.
Fixed
- goose and dbmate migrations are read for their up half only. Both keep the up and down directions in one file, and the down half was replayed too, so a
DROP TABLEunder-- +goose Downremoved the table its up half had just created. Only what runs on the way forward (-- +goose Up,-- migrate:up) is read now, and line numbers still point into the file. - Down files are skipped. A folder passed as
--beforeno longer replays golang-migrate and sqlx.down.sql, Diesel'sdown.sqlor a FlywayUundo. The action leaves them out of the pull request's files too, sofail-on: loses-datano longer fails every pull request that adds a down file.
Changed
- A design finding shows on the line that introduces it. With
--format github, a lint finding is placed on the first changed statement that names its table and column, so thefk-no-covering-indexfinding forALTER TABLE orders ADD COLUMN referrer_id bigint REFERENCES customers (id);appears under that line in Files changed, not only on the run's summary. The JSON report gainsfileandlineon each lint finding. - The header counts in the singular:
Schema before: 1 table from 1 file.
Upgrade
Nothing to change in a workflow that uses schemity/ci@v1 with the default version: latest. A workflow pinned to an earlier version needs version: v0.1.3.
Downloads
| File | For |
|---|---|
schemity-x86_64-unknown-linux-musl.tar.gz |
Linux x64 |
schemity-aarch64-unknown-linux-musl.tar.gz |
Linux ARM64 |
schemity-aarch64-apple-darwin.tar.gz |
macOS on Apple silicon |
Each archive holds the schemity binary, its license and the licenses of the open source software in it. SHA-256 sums ar