Skip to content

v0.1.3

Choose a tag to compare

@tbson tbson released this 17 Nov 15:38
· 2 commits to main since this release

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 TABLE under -- +goose Down removed 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 --before no longer replays golang-migrate and sqlx .down.sql, Diesel's down.sql or a Flyway U undo. The action leaves them out of the pull request's files too, so fail-on: loses-data no 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 the fk-no-covering-index finding for ALTER 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 gains file and line on 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