strong_migrations 0.6.0 → 2.3.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 858552e31803f119fa4df371348a710c20db26107ad55f66a553192fddefac47
4
- data.tar.gz: a7646d2969c0051e9362103b037f6e46d0a878d521aa63e7811b5b23818cdb64
3
+ metadata.gz: 3538811c535186c2757c2e92a56ec753c77842a99728a727aabe323dd8852182
4
+ data.tar.gz: 6d33a69582e57e3035d7ef540894ce0020957aef8d4e081e693552615ac9af8b
5
5
  SHA512:
6
- metadata.gz: 3127959b63c1f846a3bd4caf213fa1edc52ad3dc5fdec3d45fde1ffb8028f5e0a2c5b3fb4db2a696ffb26862262d2e866acc2ccb1eba80600fea2e5c16b43f22
7
- data.tar.gz: 14a4fc2f946cfa05bfe86b2fcc390633691c354495f83eb9382ec8a0dfad7be0b72c1fdf813ea76522981b73336d2cd3cf15d2b3bd5a8004eed3d87d5b7e0327
6
+ metadata.gz: 50a4b8ea0d0677bc0d5a3fa740f9f2e8b00acee0e673abaf7197c0c89540165ecb0cad913ed4244b61e3ac23342d4c44b8209991dea3841ee6dd7d7fbef827e3
7
+ data.tar.gz: fd6d44273d6365ca9e33a246e072a24da93191bfc73b5d425df22c0b3b6523ce218d6aa6360dd6a8fcbcf88b5a06bf41c7221ccdceb69f26b734510cd38876f7
data/CHANGELOG.md CHANGED
@@ -1,3 +1,243 @@
1
+ ## 2.3.0 (2025-04-03)
2
+
3
+ - Added check for `change_column` for columns with check constraints with Postgres
4
+
5
+ ## 2.2.1 (2025-03-21)
6
+
7
+ - Added support for `change_column_null` with default value with `safe_by_default` option
8
+ - Improved backfill instructions
9
+ - Fixed `safe_by_default` applying to migrations before `start_after`
10
+
11
+ ## 2.2.0 (2025-02-01)
12
+
13
+ - Fixed constraint name for long table and column names with `change_column_null`
14
+ - Dropped support for Active Record < 7
15
+
16
+ ## 2.1.0 (2024-11-08)
17
+
18
+ - Added `skip_database` method
19
+ - Added experimental `remove_invalid_indexes` option
20
+ - Added warning for unsupported adapters
21
+ - Improved output for `db:forward`, `db:rollback`, `db:migrate:up`, and `db:migrate:down`
22
+ - Made operations more retriable with `safe_by_default`
23
+
24
+ ## 2.0.2 (2024-10-30)
25
+
26
+ - Fixed migrations not running with Active Record 8 rc2
27
+
28
+ ## 2.0.1 (2024-10-14)
29
+
30
+ - Fixed issue with `alphabetize_schema` and virtual columns
31
+
32
+ ## 2.0.0 (2024-06-28)
33
+
34
+ - Improved install generator for Trilogy
35
+ - Fixed charset check for MariaDB 11.4
36
+ - Dropped support for Ruby < 3.1 and Active Record < 6.1
37
+ - Dropped support for Postgres < 12, MySQL < 8.0, and MariaDB < 10.5
38
+
39
+ ## 1.8.0 (2024-03-11)
40
+
41
+ - Added check for `add_column` with auto-incrementing columns
42
+ - Updated instructions for removing a column to append to `ignored_columns`
43
+ - Fixed check for adding a column with a default value for MySQL and MariaDB
44
+
45
+ ## 1.7.0 (2024-01-05)
46
+
47
+ - Added check for `add_unique_constraint`
48
+
49
+ ## 1.6.4 (2023-10-17)
50
+
51
+ - Fixed false positives with `revert`
52
+
53
+ ## 1.6.3 (2023-09-20)
54
+
55
+ - Added support for Trilogy
56
+
57
+ ## 1.6.2 (2023-09-13)
58
+
59
+ - Fixed foreign key options with `add_reference` and `safe_by_default`
60
+ - Fixed `safety_assured` with `revert`
61
+
62
+ ## 1.6.1 (2023-08-09)
63
+
64
+ - Fixed `safety_assured` for custom checks with `safe_by_default`
65
+
66
+ ## 1.6.0 (2023-07-22)
67
+
68
+ - Added check for `change_column_default`
69
+
70
+ ## 1.5.0 (2023-07-02)
71
+
72
+ - Added check for `add_column` with stored generated columns
73
+ - Fixed `add_reference` with `foreign_key` and `index: false`
74
+
75
+ ## 1.4.4 (2023-03-08)
76
+
77
+ - Fixed `add_foreign_key` with `name` and `column` options with `safe_by_default`
78
+
79
+ ## 1.4.3 (2023-02-19)
80
+
81
+ - Fixed check for `change_column` to account for charset with MySQL and MariaDB
82
+
83
+ ## 1.4.2 (2023-01-29)
84
+
85
+ - Added `alphabetize_schema` option
86
+
87
+ ## 1.4.1 (2023-01-05)
88
+
89
+ - Added support for multiple databases to `target_version`
90
+
91
+ ## 1.4.0 (2022-10-31)
92
+
93
+ - Added check for `add_exclusion_constraint`
94
+ - Added support for `RACK_ENV`
95
+ - Fixed error when `Rails` defined without `Rails.env`
96
+ - Fixed error with `change_column_null` when table does not exist
97
+
98
+ ## 1.3.2 (2022-10-09)
99
+
100
+ - Improved error message for `add_column` with `default: nil` with Postgres 10
101
+
102
+ ## 1.3.1 (2022-09-21)
103
+
104
+ - Fixed check for `add_column` with `default: nil` with Postgres 10
105
+
106
+ ## 1.3.0 (2022-08-30)
107
+
108
+ - Added check for `add_column` with `uuid` type and volatile default value
109
+
110
+ ## 1.2.0 (2022-06-10)
111
+
112
+ - Added check for index corruption with Postgres 14.0 to 14.3
113
+
114
+ ## 1.1.0 (2022-06-08)
115
+
116
+ - Added check for `force` option with `create_join_table`
117
+ - Improved errors for extra arguments
118
+ - Fixed ignoring extra arguments with `safe_by_default`
119
+ - Fixed missing options with `remove_index` and `safe_by_default`
120
+
121
+ ## 1.0.0 (2022-03-21)
122
+
123
+ New safe operations with MySQL and MariaDB
124
+
125
+ - Setting `NOT NULL` on an existing column with strict mode enabled
126
+
127
+ New safe operations with Postgres
128
+
129
+ - Changing between `text` and `citext` when not indexed
130
+ - Changing a `string` column to a `citext` column when not indexed
131
+ - Changing a `citext` column to a `string` column with no `:limit` when not indexed
132
+ - Changing a `cidr` column to an `inet` column
133
+ - Increasing `:precision` of an `interval` or `time` column
134
+
135
+ New unsafe operations with Postgres
136
+
137
+ - Adding a column with a callable default value
138
+ - Decreasing `:precision` of a `datetime` column
139
+ - Decreasing `:limit` of a `timestamptz` column
140
+ - Passing a default value to `change_column_null`
141
+
142
+ Other
143
+
144
+ - Added experimental support for lock timeout retries
145
+ - Added `target_sql_mode` option
146
+ - Added error for `change_column_null` with default value with `safe_by_default` option
147
+ - Fixed instructions for `remove_columns` with options
148
+ - Dropped support for Postgres < 10, MySQL < 5.7, and MariaDB < 10.2
149
+
150
+ ## 0.8.0 (2022-02-09)
151
+
152
+ - Fixed error with versioned schema with Active Record 7.0.2+
153
+ - Dropped support for Ruby < 2.6 and Active Record < 5.2
154
+
155
+ ## 0.7.9 (2021-12-15)
156
+
157
+ - Fixed error with multiple databases with Active Record 7
158
+
159
+ ## 0.7.8 (2021-08-03)
160
+
161
+ - Fixed issue with `add_reference ..., foreign_key: {to_table: ...}` with `safe_by_default`
162
+
163
+ ## 0.7.7 (2021-06-07)
164
+
165
+ - Removed timeouts and `auto_analyze` from schema load
166
+
167
+ ## 0.7.6 (2021-01-17)
168
+
169
+ - Fixed `NOT NULL` constraint check for quoted columns
170
+ - Fixed deprecation warning with Active Record 6.1
171
+
172
+ ## 0.7.5 (2021-01-12)
173
+
174
+ - Added checks for `add_check_constraint` and `validate_check_constraint`
175
+
176
+ ## 0.7.4 (2020-12-16)
177
+
178
+ - Added `safe_by_default` option to install generator
179
+ - Fixed warnings with Active Record 6.1
180
+
181
+ ## 0.7.3 (2020-11-24)
182
+
183
+ - Added `safe_by_default` option
184
+
185
+ ## 0.7.2 (2020-10-25)
186
+
187
+ - Added support for float timeouts
188
+
189
+ ## 0.7.1 (2020-07-27)
190
+
191
+ - Added `target_version` option to replace database-specific options
192
+
193
+ ## 0.7.0 (2020-07-22)
194
+
195
+ - Added `check_down` option
196
+ - Added check for `change_column` with `null: false`
197
+ - Added check for `validate_foreign_key`
198
+ - Improved error messages
199
+ - Made auto analyze less verbose in Postgres
200
+ - Decreasing the length limit of a `varchar` column or adding a limit is not safe in Postgres
201
+ - Removed safety checks for `db` rake tasks (Rails 5+ handles this)
202
+
203
+ ## 0.6.8 (2020-05-13)
204
+
205
+ - `change_column_null` on a column with a `NOT NULL` constraint is safe in Postgres 12+
206
+
207
+ ## 0.6.7 (2020-05-13)
208
+
209
+ - Improved comments in initializer
210
+ - Fixed string timeouts for Postgres
211
+
212
+ ## 0.6.6 (2020-05-08)
213
+
214
+ - Added warnings for missing and long lock timeouts
215
+ - Added install generator
216
+
217
+ ## 0.6.5 (2020-05-06)
218
+
219
+ - Fixed deprecation warnings with Ruby 2.7
220
+
221
+ ## 0.6.4 (2020-04-16)
222
+
223
+ - Added check for `add_reference` with `foreign_key: true`
224
+
225
+ ## 0.6.3 (2020-04-04)
226
+
227
+ - Increasing precision of `decimal` or `numeric` column is safe in Postgres 9.2+
228
+ - Making `decimal` or `numeric` column unconstrained is safe in Postgres 9.2+
229
+ - Changing between `timestamp` and `timestamptz` when session time zone is UTC in Postgres 12+
230
+ - Increasing the length of a `varchar` column from under 255 up to 255 in MySQL and MariaDB
231
+ - Increasing the length of a `varchar` column over 255 in MySQL and MariaDB
232
+
233
+ ## 0.6.2 (2020-02-03)
234
+
235
+ - Fixed PostgreSQL version check
236
+
237
+ ## 0.6.1 (2020-01-28)
238
+
239
+ - Fixed timeouts for PostgreSQL
240
+
1
241
  ## 0.6.0 (2020-01-24)
2
242
 
3
243
  - Added `statement_timeout` and `lock_timeout`
@@ -53,7 +293,7 @@
53
293
  ## 0.2.2 (2018-02-14)
54
294
 
55
295
  - Friendlier output
56
- - Better method of hooking into ActiveRecord
296
+ - Better method of hooking into Active Record
57
297
 
58
298
  ## 0.2.1 (2018-02-07)
59
299
 
data/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2013 Bob Remeika and David Waller, 2015-2019 Andrew Kane
1
+ Copyright (c) 2013 Bob Remeika and David Waller, 2015-2025 Andrew Kane
2
2
 
3
3
  MIT License
4
4