squawk-cli 0.8.0 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +1 -0
  2. package/package.json +1 -1
  3. package/CHANGELOG.md +0 -184
package/README.md CHANGED
@@ -133,6 +133,7 @@ See the ["GitHub Integration" docs](https://squawkhq.com/docs/github_app) for mo
133
133
  - <https://github.com/yandex/zero-downtime-migrations>
134
134
  - <https://github.com/tbicr/django-pg-zero-downtime-migrations>
135
135
  - <https://github.com/3YOURMIND/django-migration-linter>
136
+ - <https://github.com/ankane/strong_migrations>
136
137
 
137
138
  ## related blog posts / SE Posts / PG Docs
138
139
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "squawk-cli",
3
- "version": "0.8.0",
3
+ "version": "0.10.0",
4
4
  "description": "linter for PostgreSQL, focused on migrations",
5
5
  "repository": "git@github.com:sbdchd/squawk.git",
6
6
  "author": "Steve Dignam <steve@dignam.xyz>",
package/CHANGELOG.md DELETED
@@ -1,184 +0,0 @@
1
- # Changelog
2
-
3
- All notable changes to this project will be documented in this file.
4
-
5
- The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
- and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
-
8
- ## [Unreleased]
9
-
10
- ## v0.7.3 - 2021-08-11
11
-
12
- ### Fixed
13
-
14
- - false positives with require-concurrent-index rule (#157)
15
-
16
- ## v0.7.2 - 2021-08-02
17
-
18
- ### Fixed
19
-
20
- - incorrect internal schema for "alter table" statements with function calls. Thanks @qoelet! (#154)
21
-
22
- ## v0.7.1 - 2021-05-30
23
-
24
- ### Fixed
25
-
26
- - incorrect internal schema for "create partition" statements. (#146)
27
- - `upload-to-github` command not obeying top level `--exclude`s. (#142)
28
-
29
- ### Changed
30
-
31
- - allowing adding not null column with default for `adding-not-null-field`. (#144)
32
-
33
- ## v0.7.0 - 2021-05-19
34
-
35
- ### Added
36
-
37
- - link to website for tty reporter when there are lint errors. (#120)
38
- - `DROP INDEX` support for "require-concurrent-index-creation" and "prefer-robust-stmts". (#124)
39
- - github comment now includes Squawk's version number. (#131)
40
- - new `ban-drop-column` rule (#132)
41
-
42
- ### Changed
43
-
44
- - updated "adding-not-null-field" to warn about making a column non-nullable with `NOT NULL`. See the ["adding-not-null-field" docs](https://squawkhq.com/docs/adding-not-nullable-field) for more information. (#101)
45
-
46
- ### Fixed
47
-
48
- - false positive with `prefer-text-field` that wasn't allowing `varchar`
49
- without a length specified
50
-
51
- ## v0.6.0 - 2021-02-19
52
-
53
- ### Added
54
-
55
- - added "debug" option for `--dump-ast` to print out tree using Rust's `Debug` formatter (#92)
56
- - added new rule, "adding-foreign-key-constraint", to provide suggestions for safely adding foreign key constraints (#91)
57
-
58
- ### Changed
59
-
60
- - updated "robust-stmts" suggestions with caveat about `IF NOT EXISTS` (#95)
61
- - updated "constraint-missing-not-valid" to warn about adding a constraint as NOT VALID and then using "VALIDATE CONSTRAINT" in the same transaction (#97)
62
- - updated "prefer-robust-stmts" with exception for using `DROP CONSTRAINT IF EXISTS` before `ADD CONSTRAINT` (#99)
63
-
64
- ### Fixed
65
-
66
- - error reporting is more user friendly (#89, #90)
67
-
68
- ## v0.5.4 - 2021-01-08
69
-
70
- ### Fixed
71
-
72
- - parsing of RangeVar with missing inh field
73
-
74
- ## v0.5.3 - 2021-01-04
75
-
76
- ### Fixed
77
-
78
- - parsing of alter table with type cast
79
-
80
- ## v0.5.2 - 2020-10-26
81
-
82
- ### Fixed
83
-
84
- - parsing of create table with primary key constraint on two fields
85
-
86
- ## v0.5.1 - 2020-10-07
87
-
88
- ### Fixed
89
-
90
- - run `prefer-text-field` on alter table statments
91
-
92
- ## v0.5.0 - 2020-09-08
93
-
94
- ### Added
95
-
96
- - new rule `adding-primary-key-field`
97
-
98
- ### Fixed
99
-
100
- - parsing `->>` operator
101
-
102
- ## v0.4.1 - 2020-08-19
103
-
104
- ### Fixed
105
-
106
- - parse function calls in alter table statements
107
-
108
- ## v0.4.0 - 2020-07-19
109
-
110
- ### Added
111
-
112
- - new rule `ban-char-type`
113
-
114
- ## v0.3.0 - 2020-07-10
115
-
116
- ### Changed
117
-
118
- - upload-to-github comment formatting to hopefully be more clear
119
- - docs on crates.io for sub crates
120
-
121
- ## v0.2.3 - 2020-07-09
122
-
123
- ### Added
124
-
125
- - new rule `prefer-robust-stmts`
126
-
127
- ## v0.2.2 - 2020-06-25
128
-
129
- ### Fixed
130
-
131
- - upload-to-github commenting on PRs when no files provided (#30)
132
-
133
- ## v0.2.1 - 2020-06-25
134
-
135
- ### Changed
136
-
137
- - remove `SQUAWK_GITHUB_BOT_NAME` env var for github upload, no longer needed (#27)
138
-
139
- ### Fixed
140
-
141
- - false positive in unique constraint rule (#28)
142
-
143
- ## v0.2.0 - 2020-06-23
144
-
145
- ### Added
146
-
147
- - logging, mainly around upload-to-github (#24)
148
- - `--stdin-filepath` argument (#23)
149
- - output a success message for CLI tty reporter (#22)
150
-
151
- ### Changed
152
-
153
- - prefix env vars with SQUAWK\_ (#21)
154
-
155
- ### Fixed
156
-
157
- - error level HTTP status codes not being errors (#20)
158
-
159
- ## v0.1.4 - 2020-06-21
160
-
161
- ### Added
162
-
163
- - `upload-to-github` subcommand for outputing squawk results in a GitHub PR
164
- comment.
165
- - print help menu when no options provided
166
- - automatically detect stdin instead of using the `-` path
167
-
168
- ### Fixed
169
-
170
- - off by one error in slicing problem SQL for the tty reporter
171
-
172
- ## v0.1.3 - 2020-06-12
173
-
174
- ### Added
175
-
176
- - documentation for rules
177
- - release binaries
178
- - CI
179
-
180
- ## v0.1.0 - 2020-06-05
181
-
182
- ### Added
183
-
184
- - Initial release