strong_migrations 0.6.8 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +93 -0
- data/LICENSE.txt +1 -1
- data/README.md +285 -117
- data/lib/generators/strong_migrations/install_generator.rb +29 -0
- data/lib/generators/strong_migrations/templates/initializer.rb.tt +10 -3
- data/lib/strong_migrations/adapters/abstract_adapter.rb +61 -0
- data/lib/strong_migrations/adapters/mariadb_adapter.rb +29 -0
- data/lib/strong_migrations/adapters/mysql_adapter.rb +87 -0
- data/lib/strong_migrations/adapters/postgresql_adapter.rb +227 -0
- data/lib/strong_migrations/checker.rb +116 -401
- data/lib/strong_migrations/checks.rb +421 -0
- data/lib/strong_migrations/database_tasks.rb +2 -1
- data/lib/strong_migrations/error_messages.rb +227 -0
- data/lib/strong_migrations/migration.rb +10 -2
- data/lib/strong_migrations/migrator.rb +19 -0
- data/lib/strong_migrations/railtie.rb +0 -4
- data/lib/strong_migrations/safe_methods.rb +118 -0
- data/lib/strong_migrations/version.rb +1 -1
- data/lib/strong_migrations.rb +20 -180
- data/lib/tasks/strong_migrations.rake +0 -6
- metadata +19 -81
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4c0ea5c8cf3e904b89b8c4ab2f28ff60031515e40edf5b0c617ca4b8f8249650
|
4
|
+
data.tar.gz: 5cb0fd63058bf618595cd929ef90de3cf90f02963f0adca21182c578f41c3320
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 50db9d240d49b60b75d97c76765b8f5e3b252c2cc826bd5e50e9b57311082dfea2c9cc5790fd905a2eac45a3eb6afb2784c7ed7962dcaf0172157548e1c8d233
|
7
|
+
data.tar.gz: 2f2e5311cad061b712ee9dfb69a41b5e81f31be8db257bd095cbd8124bc461551afebb305d95b0bb090d6f7ef85c61618d61e64e9b73f266338a0aa7f5101b53
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,96 @@
|
|
1
|
+
## 1.2.0 (2022-06-10)
|
2
|
+
|
3
|
+
- Added check for index corruption with Postgres 14.0 to 14.3
|
4
|
+
|
5
|
+
## 1.1.0 (2022-06-08)
|
6
|
+
|
7
|
+
- Added check for `force` option with `create_join_table`
|
8
|
+
- Improved errors for extra arguments
|
9
|
+
- Fixed ignoring extra arguments with `safe_by_default`
|
10
|
+
- Fixed missing options with `remove_index` and `safe_by_default`
|
11
|
+
|
12
|
+
## 1.0.0 (2022-03-21)
|
13
|
+
|
14
|
+
New safe operations with MySQL and MariaDB
|
15
|
+
|
16
|
+
- Setting `NOT NULL` on an existing column with strict mode enabled
|
17
|
+
|
18
|
+
New safe operations with Postgres
|
19
|
+
|
20
|
+
- Changing between `text` and `citext` when not indexed
|
21
|
+
- Changing a `string` column to a `citext` column when not indexed
|
22
|
+
- Changing a `citext` column to a `string` column with no `:limit` when not indexed
|
23
|
+
- Changing a `cidr` column to an `inet` column
|
24
|
+
- Increasing `:precision` of an `interval` or `time` column
|
25
|
+
|
26
|
+
New unsafe operations with Postgres
|
27
|
+
|
28
|
+
- Adding a column with a callable default value
|
29
|
+
- Decreasing `:precision` of a `datetime` column
|
30
|
+
- Decreasing `:limit` of a `timestamptz` column
|
31
|
+
- Passing a default value to `change_column_null`
|
32
|
+
|
33
|
+
Other
|
34
|
+
|
35
|
+
- Added experimental support for lock timeout retries
|
36
|
+
- Added `target_sql_mode` option
|
37
|
+
- Added error for `change_column_null` with default value with `safe_by_default` option
|
38
|
+
- Fixed instructions for `remove_columns` with options
|
39
|
+
- Dropped support for Postgres < 10, MySQL < 5.7, and MariaDB < 10.2
|
40
|
+
|
41
|
+
## 0.8.0 (2022-02-09)
|
42
|
+
|
43
|
+
- Fixed error with versioned schema with Active Record 7.0.2+
|
44
|
+
- Dropped support for Ruby < 2.6 and Active Record < 5.2
|
45
|
+
|
46
|
+
## 0.7.9 (2021-12-15)
|
47
|
+
|
48
|
+
- Fixed error with multiple databases with Active Record 7
|
49
|
+
|
50
|
+
## 0.7.8 (2021-08-03)
|
51
|
+
|
52
|
+
- Fixed issue with `add_reference ..., foreign_key: {to_table: ...}` with `safe_by_default`
|
53
|
+
|
54
|
+
## 0.7.7 (2021-06-07)
|
55
|
+
|
56
|
+
- Removed timeouts and `auto_analyze` from schema load
|
57
|
+
|
58
|
+
## 0.7.6 (2021-01-17)
|
59
|
+
|
60
|
+
- Fixed `NOT NULL` constraint check for quoted columns
|
61
|
+
- Fixed deprecation warning with Active Record 6.1
|
62
|
+
|
63
|
+
## 0.7.5 (2021-01-12)
|
64
|
+
|
65
|
+
- Added checks for `add_check_constraint` and `validate_check_constraint`
|
66
|
+
|
67
|
+
## 0.7.4 (2020-12-16)
|
68
|
+
|
69
|
+
- Added `safe_by_default` option to install generator
|
70
|
+
- Fixed warnings with Active Record 6.1
|
71
|
+
|
72
|
+
## 0.7.3 (2020-11-24)
|
73
|
+
|
74
|
+
- Added `safe_by_default` option
|
75
|
+
|
76
|
+
## 0.7.2 (2020-10-25)
|
77
|
+
|
78
|
+
- Added support for float timeouts
|
79
|
+
|
80
|
+
## 0.7.1 (2020-07-27)
|
81
|
+
|
82
|
+
- Added `target_version` option to replace database-specific options
|
83
|
+
|
84
|
+
## 0.7.0 (2020-07-22)
|
85
|
+
|
86
|
+
- Added `check_down` option
|
87
|
+
- Added check for `change_column` with `null: false`
|
88
|
+
- Added check for `validate_foreign_key`
|
89
|
+
- Improved error messages
|
90
|
+
- Made auto analyze less verbose in Postgres
|
91
|
+
- Decreasing the length limit of a `varchar` column or adding a limit is not safe in Postgres
|
92
|
+
- Removed safety checks for `db` rake tasks (Rails 5+ handles this)
|
93
|
+
|
1
94
|
## 0.6.8 (2020-05-13)
|
2
95
|
|
3
96
|
- `change_column_null` on a column with a `NOT NULL` constraint is safe in Postgres 12+
|
data/LICENSE.txt
CHANGED