strong_migrations 1.4.4 → 2.5.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 +4 -4
- data/CHANGELOG.md +86 -1
- data/LICENSE.txt +1 -1
- data/README.md +285 -155
- data/lib/generators/strong_migrations/install_generator.rb +3 -7
- data/lib/generators/strong_migrations/templates/initializer.rb.tt +3 -0
- data/lib/strong_migrations/adapters/abstract_adapter.rb +13 -10
- data/lib/strong_migrations/adapters/mariadb_adapter.rb +2 -2
- data/lib/strong_migrations/adapters/mysql_adapter.rb +10 -5
- data/lib/strong_migrations/adapters/postgresql_adapter.rb +25 -28
- data/lib/strong_migrations/checker.rb +109 -19
- data/lib/strong_migrations/checks.rb +130 -85
- data/lib/strong_migrations/error_messages.rb +61 -14
- data/lib/strong_migrations/migration.rb +12 -6
- data/lib/strong_migrations/{database_tasks.rb → migration_context.rb} +20 -3
- data/lib/strong_migrations/migrator.rb +7 -5
- data/lib/strong_migrations/safe_methods.rb +60 -40
- data/lib/strong_migrations/schema_dumper.rb +15 -4
- data/lib/strong_migrations/version.rb +1 -1
- data/lib/strong_migrations.rb +9 -6
- metadata +7 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 971d5d1eabb91dc04c72cc99a24f8b92f1b0d31d8d28369577f48c283b8d8624
|
4
|
+
data.tar.gz: '08a413578f564ada7f9768aeaf469719ca051e4c37057be6324e593c73fb3144'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b8ca27268e166609ec8253ce686c6fe9cbe6d7c4b298f8c80ce7f1690e76a2c997fad2806cce52c9765f6ee92e7e389fdf6c830d3ca8ebb0241574adc02c4b57
|
7
|
+
data.tar.gz: 18731d2b1bdd12698d6b860a470249a24ea12aaa0b5b74b6510d41527ef2126c46b27ef4aa7c7adb1437bd7a006d0bb7c46490d24ec15720009723e5b0d8eca4
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,88 @@
|
|
1
|
+
## 2.5.0 (2025-07-27)
|
2
|
+
|
3
|
+
- Added check for `rename_schema`
|
4
|
+
- Made `auto_analyze` apply to `add_reference`
|
5
|
+
|
6
|
+
## 2.4.0 (2025-06-23)
|
7
|
+
|
8
|
+
- Added `remove_invalid_indexes` option to install generator
|
9
|
+
- Added experimental `transaction_timeout` option
|
10
|
+
- Dropped support for Ruby < 3.2 and Active Record < 7.1
|
11
|
+
|
12
|
+
## 2.3.0 (2025-04-03)
|
13
|
+
|
14
|
+
- Added check for `change_column` for columns with check constraints with Postgres
|
15
|
+
|
16
|
+
## 2.2.1 (2025-03-21)
|
17
|
+
|
18
|
+
- Added support for `change_column_null` with default value with `safe_by_default` option
|
19
|
+
- Improved backfill instructions
|
20
|
+
- Fixed `safe_by_default` applying to migrations before `start_after`
|
21
|
+
|
22
|
+
## 2.2.0 (2025-02-01)
|
23
|
+
|
24
|
+
- Fixed constraint name for long table and column names with `change_column_null`
|
25
|
+
- Dropped support for Active Record < 7
|
26
|
+
|
27
|
+
## 2.1.0 (2024-11-08)
|
28
|
+
|
29
|
+
- Added `skip_database` method
|
30
|
+
- Added experimental `remove_invalid_indexes` option
|
31
|
+
- Added warning for unsupported adapters
|
32
|
+
- Improved output for `db:forward`, `db:rollback`, `db:migrate:up`, and `db:migrate:down`
|
33
|
+
- Made operations more retriable with `safe_by_default`
|
34
|
+
|
35
|
+
## 2.0.2 (2024-10-30)
|
36
|
+
|
37
|
+
- Fixed migrations not running with Active Record 8 rc2
|
38
|
+
|
39
|
+
## 2.0.1 (2024-10-14)
|
40
|
+
|
41
|
+
- Fixed issue with `alphabetize_schema` and virtual columns
|
42
|
+
|
43
|
+
## 2.0.0 (2024-06-28)
|
44
|
+
|
45
|
+
- Improved install generator for Trilogy
|
46
|
+
- Fixed charset check for MariaDB 11.4
|
47
|
+
- Dropped support for Ruby < 3.1 and Active Record < 6.1
|
48
|
+
- Dropped support for Postgres < 12, MySQL < 8.0, and MariaDB < 10.5
|
49
|
+
|
50
|
+
## 1.8.0 (2024-03-11)
|
51
|
+
|
52
|
+
- Added check for `add_column` with auto-incrementing columns
|
53
|
+
- Updated instructions for removing a column to append to `ignored_columns`
|
54
|
+
- Fixed check for adding a column with a default value for MySQL and MariaDB
|
55
|
+
|
56
|
+
## 1.7.0 (2024-01-05)
|
57
|
+
|
58
|
+
- Added check for `add_unique_constraint`
|
59
|
+
|
60
|
+
## 1.6.4 (2023-10-17)
|
61
|
+
|
62
|
+
- Fixed false positives with `revert`
|
63
|
+
|
64
|
+
## 1.6.3 (2023-09-20)
|
65
|
+
|
66
|
+
- Added support for Trilogy
|
67
|
+
|
68
|
+
## 1.6.2 (2023-09-13)
|
69
|
+
|
70
|
+
- Fixed foreign key options with `add_reference` and `safe_by_default`
|
71
|
+
- Fixed `safety_assured` with `revert`
|
72
|
+
|
73
|
+
## 1.6.1 (2023-08-09)
|
74
|
+
|
75
|
+
- Fixed `safety_assured` for custom checks with `safe_by_default`
|
76
|
+
|
77
|
+
## 1.6.0 (2023-07-22)
|
78
|
+
|
79
|
+
- Added check for `change_column_default`
|
80
|
+
|
81
|
+
## 1.5.0 (2023-07-02)
|
82
|
+
|
83
|
+
- Added check for `add_column` with stored generated columns
|
84
|
+
- Fixed `add_reference` with `foreign_key` and `index: false`
|
85
|
+
|
1
86
|
## 1.4.4 (2023-03-08)
|
2
87
|
|
3
88
|
- Fixed `add_foreign_key` with `name` and `column` options with `safe_by_default`
|
@@ -219,7 +304,7 @@ Other
|
|
219
304
|
## 0.2.2 (2018-02-14)
|
220
305
|
|
221
306
|
- Friendlier output
|
222
|
-
- Better method of hooking into
|
307
|
+
- Better method of hooking into Active Record
|
223
308
|
|
224
309
|
## 0.2.1 (2018-02-07)
|
225
310
|
|
data/LICENSE.txt
CHANGED