strong_migrations 1.6.0 → 2.8.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 +100 -1
- data/LICENSE.txt +1 -1
- data/README.md +421 -220
- data/lib/generators/strong_migrations/install_generator.rb +4 -8
- 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 +115 -19
- data/lib/strong_migrations/checks.rb +225 -97
- data/lib/strong_migrations/error_messages.rb +120 -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 +12 -6
- 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: 506dc7670dbae5a7f4bb621d39da43e67098b9629cc76a854d2677d006f0919a
|
|
4
|
+
data.tar.gz: 3cfd8d8f74a1575b23485ca16ef26f04de5f52b8c059fcded94d1a42410afc41
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0b55091991fdba05bbc088a3b8967a66473e150ccce62f2065d671fa1b61f2dc70b0cd149f5a9645135b9fdcc9e10f344b7ea548e391ab9bcca371bdff35443c
|
|
7
|
+
data.tar.gz: '09a1b778c608aa600a3e84ca99da6fb8ad5771cec839092b2f77e0788e6dc6a0940442665de94ec5ea07487fcdb7b665bc41a258c44266f79f322616336986e9'
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,102 @@
|
|
|
1
|
+
## 2.8.0 (2026-05-14)
|
|
2
|
+
|
|
3
|
+
- Added check for `rename_enum_value`
|
|
4
|
+
|
|
5
|
+
## 2.7.0 (2026-04-25)
|
|
6
|
+
|
|
7
|
+
- Added check for `add_foreign_key` with MySQL and MariaDB
|
|
8
|
+
- Added check for `add_column` with callable default value with MySQL and MariaDB
|
|
9
|
+
|
|
10
|
+
## 2.6.0 (2026-04-07)
|
|
11
|
+
|
|
12
|
+
- Added check for `algorithm: :copy` with MySQL and MariaDB
|
|
13
|
+
- Added check for `lock: :shared` and `lock: :exclusive` with MySQL and MariaDB
|
|
14
|
+
- Dropped support for Ruby < 3.3 and Active Record < 7.2
|
|
15
|
+
|
|
16
|
+
## 2.5.2 (2025-12-20)
|
|
17
|
+
|
|
18
|
+
- Fixed false positive for `add_reference` with `foreign_key: {validate: false}`
|
|
19
|
+
|
|
20
|
+
## 2.5.1 (2025-10-13)
|
|
21
|
+
|
|
22
|
+
- Fixed `transaction_timeout` option with DDL transaction
|
|
23
|
+
|
|
24
|
+
## 2.5.0 (2025-07-27)
|
|
25
|
+
|
|
26
|
+
- Added check for `rename_schema`
|
|
27
|
+
- Made `auto_analyze` apply to `add_reference`
|
|
28
|
+
|
|
29
|
+
## 2.4.0 (2025-06-23)
|
|
30
|
+
|
|
31
|
+
- Added `remove_invalid_indexes` option to install generator
|
|
32
|
+
- Added experimental `transaction_timeout` option
|
|
33
|
+
- Dropped support for Ruby < 3.2 and Active Record < 7.1
|
|
34
|
+
|
|
35
|
+
## 2.3.0 (2025-04-03)
|
|
36
|
+
|
|
37
|
+
- Added check for `change_column` for columns with check constraints with Postgres
|
|
38
|
+
|
|
39
|
+
## 2.2.1 (2025-03-21)
|
|
40
|
+
|
|
41
|
+
- Added support for `change_column_null` with default value with `safe_by_default` option
|
|
42
|
+
- Improved backfill instructions
|
|
43
|
+
- Fixed `safe_by_default` applying to migrations before `start_after`
|
|
44
|
+
|
|
45
|
+
## 2.2.0 (2025-02-01)
|
|
46
|
+
|
|
47
|
+
- Fixed constraint name for long table and column names with `change_column_null`
|
|
48
|
+
- Dropped support for Active Record < 7
|
|
49
|
+
|
|
50
|
+
## 2.1.0 (2024-11-08)
|
|
51
|
+
|
|
52
|
+
- Added `skip_database` method
|
|
53
|
+
- Added experimental `remove_invalid_indexes` option
|
|
54
|
+
- Added warning for unsupported adapters
|
|
55
|
+
- Improved output for `db:forward`, `db:rollback`, `db:migrate:up`, and `db:migrate:down`
|
|
56
|
+
- Made operations more retriable with `safe_by_default`
|
|
57
|
+
|
|
58
|
+
## 2.0.2 (2024-10-30)
|
|
59
|
+
|
|
60
|
+
- Fixed migrations not running with Active Record 8 rc2
|
|
61
|
+
|
|
62
|
+
## 2.0.1 (2024-10-14)
|
|
63
|
+
|
|
64
|
+
- Fixed issue with `alphabetize_schema` and virtual columns
|
|
65
|
+
|
|
66
|
+
## 2.0.0 (2024-06-28)
|
|
67
|
+
|
|
68
|
+
- Improved install generator for Trilogy
|
|
69
|
+
- Fixed charset check for MariaDB 11.4
|
|
70
|
+
- Dropped support for Ruby < 3.1 and Active Record < 6.1
|
|
71
|
+
- Dropped support for Postgres < 12, MySQL < 8.0, and MariaDB < 10.5
|
|
72
|
+
|
|
73
|
+
## 1.8.0 (2024-03-11)
|
|
74
|
+
|
|
75
|
+
- Added check for `add_column` with auto-incrementing columns
|
|
76
|
+
- Updated instructions for removing a column to append to `ignored_columns`
|
|
77
|
+
- Fixed check for adding a column with a default value for MySQL and MariaDB
|
|
78
|
+
|
|
79
|
+
## 1.7.0 (2024-01-05)
|
|
80
|
+
|
|
81
|
+
- Added check for `add_unique_constraint`
|
|
82
|
+
|
|
83
|
+
## 1.6.4 (2023-10-17)
|
|
84
|
+
|
|
85
|
+
- Fixed false positives with `revert`
|
|
86
|
+
|
|
87
|
+
## 1.6.3 (2023-09-20)
|
|
88
|
+
|
|
89
|
+
- Added support for Trilogy
|
|
90
|
+
|
|
91
|
+
## 1.6.2 (2023-09-13)
|
|
92
|
+
|
|
93
|
+
- Fixed foreign key options with `add_reference` and `safe_by_default`
|
|
94
|
+
- Fixed `safety_assured` with `revert`
|
|
95
|
+
|
|
96
|
+
## 1.6.1 (2023-08-09)
|
|
97
|
+
|
|
98
|
+
- Fixed `safety_assured` for custom checks with `safe_by_default`
|
|
99
|
+
|
|
1
100
|
## 1.6.0 (2023-07-22)
|
|
2
101
|
|
|
3
102
|
- Added check for `change_column_default`
|
|
@@ -228,7 +327,7 @@ Other
|
|
|
228
327
|
## 0.2.2 (2018-02-14)
|
|
229
328
|
|
|
230
329
|
- Friendlier output
|
|
231
|
-
- Better method of hooking into
|
|
330
|
+
- Better method of hooking into Active Record
|
|
232
331
|
|
|
233
332
|
## 0.2.1 (2018-02-07)
|
|
234
333
|
|
data/LICENSE.txt
CHANGED