Skip to content

Releases: sbdchd/squawk

v0.8.1

01 Dec 02:40
2ff9b64

Choose a tag to compare

Fixed

  • copy pasta of rename-table into the ban-drop-column rule (#168)
  • parsing an index without a name specified (#169)

v0.8.0

31 Oct 23:20
2240f8d

Choose a tag to compare

Fixed

  • false positives with disallowed-unique-constraint and adding-serial-primary-key-field. Thanks @qoelet! (#161)

v0.7.3

11 Aug 22:14
c104d08

Choose a tag to compare

Fixed

  • false positives with require-concurrent-index rule (#157)

v0.7.2

02 Aug 21:34
efa9027

Choose a tag to compare

Fixed

  • incorrect internal schema for "alter table" statements with function calls. Thanks @qoelet! (#154)

v0.7.1

30 May 20:33
151e770

Choose a tag to compare

Fixed

  • incorrect internal schema for "create partition" statements. (#146)
  • upload-to-github command not obeying top level --excludes. (#142)

Changed

  • allowing adding not null column with default for adding-not-null-field. (#144)

v0.7.0

20 May 01:30
aeda060

Choose a tag to compare

Added

  • link to website for tty reporter when there are lint errors. (#120)
  • DROP INDEX support for "require-concurrent-index-creation" and "prefer-robust-stmts". (#124)
  • github comment now includes Squawk's version number. (#131)
  • new ban-drop-column rule (#132)

Changed

Fixed

  • false positive with prefer-text-field that wasn't allowing varchar
    without a length specified

v0.6.0

19 Feb 23:53
3c35c26

Choose a tag to compare

Added

  • added "debug" option for --dump-ast to print out tree using Rust's Debug formatter (#92)
  • added new rule, "adding-foreign-key-constraint", to provide suggestions for safely adding foreign key constraints (#91)

Changed

  • updated "robust-stmts" suggestions with caveat about IF NOT EXISTS (#95)
  • updated "constraint-missing-not-valid" to warn about adding a constraint as NOT VALID and then using "VALIDATE CONSTRAINT" in the same transaction (#97)
  • updated "prefer-robust-stmts" with exception for using DROP CONSTRAINT IF EXISTS before ADD CONSTRAINT (#99)

Fixed

  • error reporting is more user friendly (#89, #90)

v0.5.4

08 Jan 20:03
56c7c2b

Choose a tag to compare

Fixed

  • parsing of RangeVar with missing inh field

v0.5.3

04 Jan 19:29
557d34f

Choose a tag to compare

Fixed

  • parsing of alter table with type cast

v0.5.2

26 Oct 22:43
06b4986

Choose a tag to compare

Fixed

  • parsing of create table with primary key constraint on two fields