Skip to content

Releases: sbdchd/squawk

update `adding-field-with-default` documentation

25 Apr 15:09
b6421ea
Compare
Choose a tag to compare

Changed

  • differentiate between VOLATILE and non-VOLATILE defaults in adding-field-with-default documentation (#201)

PG13 parser

08 Jan 02:57
98e1170
Compare
Choose a tag to compare

Fixed

  • errors parsing PG12 and later query syntax by upgrading to PG13 parser (#174)
  • parsing alter constraint statement (#173)

v0.8.1

01 Dec 02:40
2ff9b64
Compare
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
Compare
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
Compare
Choose a tag to compare

Fixed

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

v0.7.2

02 Aug 21:34
efa9027
Compare
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
Compare
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
Compare
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
Compare
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
Compare
Choose a tag to compare

Fixed

  • parsing of RangeVar with missing inh field