squawk-cli 0.8.2 → 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.
- package/README.md +1 -0
- package/package.json +1 -1
- package/CHANGELOG.md +0 -204
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
package/CHANGELOG.md
DELETED
|
@@ -1,204 +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.8.2 - 2022-01-07
|
|
11
|
-
|
|
12
|
-
### Fixed
|
|
13
|
-
|
|
14
|
-
- errors parsing PG12 and later query syntax by upgrading to PG13 parser (#174)
|
|
15
|
-
- parsing alter constraint statement (#173)
|
|
16
|
-
|
|
17
|
-
## v0.8.1 - 2021-11-30
|
|
18
|
-
|
|
19
|
-
### Fixed
|
|
20
|
-
|
|
21
|
-
- copy pasta of rename-table into the ban-drop-column rule (#168)
|
|
22
|
-
- parsing an index without a name specified (#169)
|
|
23
|
-
|
|
24
|
-
## v0.8.0 - 2021-10-31
|
|
25
|
-
|
|
26
|
-
### Fixed
|
|
27
|
-
|
|
28
|
-
- false positives with disallowed-unique-constraint and adding-serial-primary-key-field. Thanks @qoelet! (#161)
|
|
29
|
-
|
|
30
|
-
## v0.7.3 - 2021-08-11
|
|
31
|
-
|
|
32
|
-
### Fixed
|
|
33
|
-
|
|
34
|
-
- false positives with require-concurrent-index rule (#157)
|
|
35
|
-
|
|
36
|
-
## v0.7.2 - 2021-08-02
|
|
37
|
-
|
|
38
|
-
### Fixed
|
|
39
|
-
|
|
40
|
-
- incorrect internal schema for "alter table" statements with function calls. Thanks @qoelet! (#154)
|
|
41
|
-
|
|
42
|
-
## v0.7.1 - 2021-05-30
|
|
43
|
-
|
|
44
|
-
### Fixed
|
|
45
|
-
|
|
46
|
-
- incorrect internal schema for "create partition" statements. (#146)
|
|
47
|
-
- `upload-to-github` command not obeying top level `--exclude`s. (#142)
|
|
48
|
-
|
|
49
|
-
### Changed
|
|
50
|
-
|
|
51
|
-
- allowing adding not null column with default for `adding-not-null-field`. (#144)
|
|
52
|
-
|
|
53
|
-
## v0.7.0 - 2021-05-19
|
|
54
|
-
|
|
55
|
-
### Added
|
|
56
|
-
|
|
57
|
-
- link to website for tty reporter when there are lint errors. (#120)
|
|
58
|
-
- `DROP INDEX` support for "require-concurrent-index-creation" and "prefer-robust-stmts". (#124)
|
|
59
|
-
- github comment now includes Squawk's version number. (#131)
|
|
60
|
-
- new `ban-drop-column` rule (#132)
|
|
61
|
-
|
|
62
|
-
### Changed
|
|
63
|
-
|
|
64
|
-
- 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)
|
|
65
|
-
|
|
66
|
-
### Fixed
|
|
67
|
-
|
|
68
|
-
- false positive with `prefer-text-field` that wasn't allowing `varchar`
|
|
69
|
-
without a length specified
|
|
70
|
-
|
|
71
|
-
## v0.6.0 - 2021-02-19
|
|
72
|
-
|
|
73
|
-
### Added
|
|
74
|
-
|
|
75
|
-
- added "debug" option for `--dump-ast` to print out tree using Rust's `Debug` formatter (#92)
|
|
76
|
-
- added new rule, "adding-foreign-key-constraint", to provide suggestions for safely adding foreign key constraints (#91)
|
|
77
|
-
|
|
78
|
-
### Changed
|
|
79
|
-
|
|
80
|
-
- updated "robust-stmts" suggestions with caveat about `IF NOT EXISTS` (#95)
|
|
81
|
-
- updated "constraint-missing-not-valid" to warn about adding a constraint as NOT VALID and then using "VALIDATE CONSTRAINT" in the same transaction (#97)
|
|
82
|
-
- updated "prefer-robust-stmts" with exception for using `DROP CONSTRAINT IF EXISTS` before `ADD CONSTRAINT` (#99)
|
|
83
|
-
|
|
84
|
-
### Fixed
|
|
85
|
-
|
|
86
|
-
- error reporting is more user friendly (#89, #90)
|
|
87
|
-
|
|
88
|
-
## v0.5.4 - 2021-01-08
|
|
89
|
-
|
|
90
|
-
### Fixed
|
|
91
|
-
|
|
92
|
-
- parsing of RangeVar with missing inh field
|
|
93
|
-
|
|
94
|
-
## v0.5.3 - 2021-01-04
|
|
95
|
-
|
|
96
|
-
### Fixed
|
|
97
|
-
|
|
98
|
-
- parsing of alter table with type cast
|
|
99
|
-
|
|
100
|
-
## v0.5.2 - 2020-10-26
|
|
101
|
-
|
|
102
|
-
### Fixed
|
|
103
|
-
|
|
104
|
-
- parsing of create table with primary key constraint on two fields
|
|
105
|
-
|
|
106
|
-
## v0.5.1 - 2020-10-07
|
|
107
|
-
|
|
108
|
-
### Fixed
|
|
109
|
-
|
|
110
|
-
- run `prefer-text-field` on alter table statments
|
|
111
|
-
|
|
112
|
-
## v0.5.0 - 2020-09-08
|
|
113
|
-
|
|
114
|
-
### Added
|
|
115
|
-
|
|
116
|
-
- new rule `adding-primary-key-field`
|
|
117
|
-
|
|
118
|
-
### Fixed
|
|
119
|
-
|
|
120
|
-
- parsing `->>` operator
|
|
121
|
-
|
|
122
|
-
## v0.4.1 - 2020-08-19
|
|
123
|
-
|
|
124
|
-
### Fixed
|
|
125
|
-
|
|
126
|
-
- parse function calls in alter table statements
|
|
127
|
-
|
|
128
|
-
## v0.4.0 - 2020-07-19
|
|
129
|
-
|
|
130
|
-
### Added
|
|
131
|
-
|
|
132
|
-
- new rule `ban-char-type`
|
|
133
|
-
|
|
134
|
-
## v0.3.0 - 2020-07-10
|
|
135
|
-
|
|
136
|
-
### Changed
|
|
137
|
-
|
|
138
|
-
- upload-to-github comment formatting to hopefully be more clear
|
|
139
|
-
- docs on crates.io for sub crates
|
|
140
|
-
|
|
141
|
-
## v0.2.3 - 2020-07-09
|
|
142
|
-
|
|
143
|
-
### Added
|
|
144
|
-
|
|
145
|
-
- new rule `prefer-robust-stmts`
|
|
146
|
-
|
|
147
|
-
## v0.2.2 - 2020-06-25
|
|
148
|
-
|
|
149
|
-
### Fixed
|
|
150
|
-
|
|
151
|
-
- upload-to-github commenting on PRs when no files provided (#30)
|
|
152
|
-
|
|
153
|
-
## v0.2.1 - 2020-06-25
|
|
154
|
-
|
|
155
|
-
### Changed
|
|
156
|
-
|
|
157
|
-
- remove `SQUAWK_GITHUB_BOT_NAME` env var for github upload, no longer needed (#27)
|
|
158
|
-
|
|
159
|
-
### Fixed
|
|
160
|
-
|
|
161
|
-
- false positive in unique constraint rule (#28)
|
|
162
|
-
|
|
163
|
-
## v0.2.0 - 2020-06-23
|
|
164
|
-
|
|
165
|
-
### Added
|
|
166
|
-
|
|
167
|
-
- logging, mainly around upload-to-github (#24)
|
|
168
|
-
- `--stdin-filepath` argument (#23)
|
|
169
|
-
- output a success message for CLI tty reporter (#22)
|
|
170
|
-
|
|
171
|
-
### Changed
|
|
172
|
-
|
|
173
|
-
- prefix env vars with SQUAWK\_ (#21)
|
|
174
|
-
|
|
175
|
-
### Fixed
|
|
176
|
-
|
|
177
|
-
- error level HTTP status codes not being errors (#20)
|
|
178
|
-
|
|
179
|
-
## v0.1.4 - 2020-06-21
|
|
180
|
-
|
|
181
|
-
### Added
|
|
182
|
-
|
|
183
|
-
- `upload-to-github` subcommand for outputing squawk results in a GitHub PR
|
|
184
|
-
comment.
|
|
185
|
-
- print help menu when no options provided
|
|
186
|
-
- automatically detect stdin instead of using the `-` path
|
|
187
|
-
|
|
188
|
-
### Fixed
|
|
189
|
-
|
|
190
|
-
- off by one error in slicing problem SQL for the tty reporter
|
|
191
|
-
|
|
192
|
-
## v0.1.3 - 2020-06-12
|
|
193
|
-
|
|
194
|
-
### Added
|
|
195
|
-
|
|
196
|
-
- documentation for rules
|
|
197
|
-
- release binaries
|
|
198
|
-
- CI
|
|
199
|
-
|
|
200
|
-
## v0.1.0 - 2020-06-05
|
|
201
|
-
|
|
202
|
-
### Added
|
|
203
|
-
|
|
204
|
-
- Initial release
|