ridgepole 1.0.1 → 3.1.5
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 +234 -99
- data/README.md +131 -26
- data/bin/ridgepole +16 -7
- data/lib/ridgepole/cli/config.rb +8 -15
- data/lib/ridgepole/client.rb +3 -2
- data/lib/ridgepole/default_limit.rb +13 -9
- data/lib/ridgepole/delta.rb +211 -17
- data/lib/ridgepole/diff.rb +207 -19
- data/lib/ridgepole/dsl_parser/context.rb +56 -3
- data/lib/ridgepole/dsl_parser/table_definition.rb +49 -21
- data/lib/ridgepole/dsl_parser.rb +24 -8
- data/lib/ridgepole/dumper.rb +7 -3
- data/lib/ridgepole/execute_expander.rb +34 -8
- data/lib/ridgepole/ext/abstract_adapter/disable_table_options.rb +0 -2
- data/lib/ridgepole/ext/schema_dumper/disable_sort_columns.rb +28 -0
- data/lib/ridgepole/ext/schema_dumper/foreign_keys.rb +68 -0
- data/lib/ridgepole/external_sql_executer.rb +1 -12
- data/lib/ridgepole/logger.rb +1 -0
- data/lib/ridgepole/version.rb +1 -1
- data/lib/ridgepole.rb +1 -1
- metadata +102 -33
- data/.rspec +0 -3
- data/.rubocop.yml +0 -53
- data/.simplecov +0 -6
- data/Appraisals +0 -22
- data/Gemfile +0 -6
- data/Rakefile +0 -13
- data/docker-compose.yml +0 -26
- data/gemfiles/activerecord_5.1.gemfile +0 -7
- data/gemfiles/activerecord_5.2.gemfile +0 -8
- data/gemfiles/activerecord_6.0.gemfile +0 -7
- data/gemfiles/activerecord_6.1.gemfile +0 -7
- data/gemfiles/activerecord_7.0.gemfile +0 -7
- data/lib/ridgepole/ext/schema_dumper.rb +0 -56
- data/ridgepole.gemspec +0 -47
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b6de4765b254e55e4087b4fe7d99a9c23493e0c54b0a7c7e957b88488fa234d2
|
|
4
|
+
data.tar.gz: 6d05534c60e9f9f0967179520d8ecd83bee84b96cbe1e80cd4336327f7cb8c37
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1bb9273027a3b3d74c7c18faf25ba4b47033a44b98b12b1de80e04cd521aeb994f45168e97603b56c87dac6839990322eb8b2131e438320772983b9636a8695e
|
|
7
|
+
data.tar.gz: 49099509a1f3d8e5ae98fb7fe442e942ba7c7def24cf8a065e7c0d8838826e8ba4ec6394e4f9a5fa12cb906f2e850cb1a89e10496bbd07801ba746bf429f6389
|
data/CHANGELOG.md
CHANGED
|
@@ -1,246 +1,381 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 3.0
|
|
4
|
+
|
|
5
|
+
### 3.1.5 (2026/03/21)
|
|
6
|
+
|
|
7
|
+
- Fix for renaming references column. [pull#652](https://github.com/ridgepole/ridgepole/pull/652)
|
|
8
|
+
- Fix for creating table with non-PK auto_increment column. [pull#650](https://github.com/ridgepole/ridgepole/pull/650)
|
|
9
|
+
|
|
10
|
+
### 3.1.4 (2026/03/20)
|
|
11
|
+
|
|
12
|
+
- Fix for errors when changing generated columns. [pull#642](https://github.com/ridgepole/ridgepole/pull/642) [pull#646](https://github.com/ridgepole/ridgepole/pull/646)
|
|
13
|
+
- Fix for changes to `create_table` in ActiveRecord 8.2. [pull#645](https://github.com/ridgepole/ridgepole/pull/645)
|
|
14
|
+
|
|
15
|
+
### 3.1.3 (2026/01/29)
|
|
16
|
+
|
|
17
|
+
- Show `COMMENT` SQL in dry-run. [pull#632](https://github.com/ridgepole/ridgepole/pull/632)
|
|
18
|
+
|
|
19
|
+
### 3.1.2 (2025/11/03)
|
|
20
|
+
|
|
21
|
+
- Normalize foreign key columns. [pull#607](https://github.com/ridgepole/ridgepole/pull/607)
|
|
22
|
+
|
|
23
|
+
### 3.1.1 (2025/10/31)
|
|
24
|
+
|
|
25
|
+
- Add `--disable-sort-columns` option [pull#601](https://github.com/ridgepole/ridgepole/pull/601)
|
|
26
|
+
|
|
27
|
+
### 3.1.0 (2025/10/30)
|
|
28
|
+
|
|
29
|
+
- Support Rails 8.1 [pull#589](https://github.com/ridgepole/ridgepole/pull/589)
|
|
30
|
+
- Support for migrating PostgreSQL table comments [pull#587](https://github.com/ridgepole/ridgepole/pull/587)
|
|
31
|
+
|
|
32
|
+
### 3.0.4 (2025/08/31)
|
|
33
|
+
|
|
34
|
+
- Fix checking foreign key without index [pull#571](https://github.com/ridgepole/ridgepole/pull/571)
|
|
35
|
+
- Use `change_column_comment` for comment-only column changes [pull#567](https://github.com/ridgepole/ridgepole/pull/567)
|
|
36
|
+
|
|
37
|
+
### 3.0.3 (2025/07/23)
|
|
38
|
+
|
|
39
|
+
- Fix for index `algorithm` option [pull#555](https://github.com/ridgepole/ridgepole/pull/555)
|
|
40
|
+
|
|
41
|
+
### 3.0.2 (2025/06/22)
|
|
42
|
+
|
|
43
|
+
- Faster table definition comparisons [pull#549](https://github.com/ridgepole/ridgepole/pull/549)
|
|
44
|
+
|
|
45
|
+
### 3.0.1 (2025/01/12)
|
|
46
|
+
|
|
47
|
+
- Normalize `check_constraint` [pull#512](https://github.com/ridgepole/ridgepole/pull/512)
|
|
48
|
+
- Support composite foreign key for non-primary key [pull#518](https://github.com/ridgepole/ridgepole/pull/518)
|
|
49
|
+
|
|
50
|
+
### 3.0.0 (2024/11/10)
|
|
51
|
+
|
|
52
|
+
- Support Rails 8.0 [pull#504](https://github.com/ridgepole/ridgepole/pull/504)
|
|
53
|
+
|
|
54
|
+
## 2.1
|
|
55
|
+
|
|
56
|
+
### 2.1.1 (2024/09/12)
|
|
57
|
+
|
|
58
|
+
- Fix for `logger` gem [pull#502](https://github.com/ridgepole/ridgepole/pull/502)
|
|
59
|
+
|
|
60
|
+
### 2.1.0 (2024/08/11)
|
|
61
|
+
|
|
62
|
+
- Support Rails 7.2 [pull#490](https://github.com/ridgepole/ridgepole/pull/490)
|
|
63
|
+
|
|
64
|
+
## 2.0
|
|
65
|
+
|
|
66
|
+
### 2.0.3 (2024/04/21)
|
|
67
|
+
|
|
68
|
+
- Add `--drop-table-only` option [pull#477](https://github.com/ridgepole/ridgepole/pull/477)
|
|
69
|
+
|
|
70
|
+
### 2.0.2 (2024/02/25)
|
|
71
|
+
|
|
72
|
+
- Fix bug that cannot include single quote in table comment [pull#467](https://github.com/ridgepole/ridgepole/pull/467)
|
|
73
|
+
|
|
74
|
+
### 2.0.1 (2023/11/22)
|
|
75
|
+
|
|
76
|
+
- Fix renamed_from bug [pull#453](https://github.com/ridgepole/ridgepole/pull/453)
|
|
77
|
+
|
|
78
|
+
### 2.0.0 (2023/11/10)
|
|
79
|
+
|
|
80
|
+
- Bump up version.
|
|
81
|
+
|
|
82
|
+
### 2.0.0.beta2 (2023/10/26)
|
|
83
|
+
|
|
84
|
+
- Support Rails 7.1 [pull#447](https://github.com/ridgepole/ridgepole/pull/447)
|
|
85
|
+
- Drop Rails 6.0 support [pull#440](https://github.com/ridgepole/ridgepole/pull/440)
|
|
86
|
+
|
|
87
|
+
### 2.0.0.beta (2023/10/22)
|
|
88
|
+
|
|
89
|
+
- Support Rails 7.1 [pull#441](https://github.com/ridgepole/ridgepole/pull/441)
|
|
90
|
+
- Drop Rails 6.0 support [pull#440](https://github.com/ridgepole/ridgepole/pull/440)
|
|
91
|
+
|
|
92
|
+
## 1.2
|
|
93
|
+
|
|
94
|
+
### 1.2.1 (2023/07/29)
|
|
95
|
+
|
|
96
|
+
- Support `t.enum` [pull#405](https://github.com/ridgepole/ridgepole/pull/405)
|
|
97
|
+
- Fix timestamps with index behavior [pull#428](https://github.com/ridgepole/ridgepole/pull/428)
|
|
98
|
+
- Fix broken `DEFAULT CURRENT_TIMESTAMP` spec [pull#420](https://github.com/ridgepole/ridgepole/pull/420)
|
|
99
|
+
- Add Ruby 3.2 to CI matrix [pull#419](https://github.com/ridgepole/ridgepole/pull/419)
|
|
100
|
+
|
|
101
|
+
### 1.2.0 (2022/09/24)
|
|
102
|
+
|
|
103
|
+
- Updated supported column types [pull#399](https://github.com/ridgepole/ridgepole/pull/399) [pull#400](https://github.com/ridgepole/ridgepole/pull/400)
|
|
104
|
+
- Support check constraint [pull#393](https://github.com/ridgepole/ridgepole/pull/393) [pull#397](https://github.com/ridgepole/ridgepole/pull/397)
|
|
105
|
+
- Drop support Rails 5.x [pull#395](https://github.com/ridgepole/ridgepole/pull/395)
|
|
106
|
+
|
|
107
|
+
## 1.1
|
|
108
|
+
|
|
109
|
+
### 1.1.0 (2022/06/18)
|
|
110
|
+
|
|
111
|
+
- Revert partitioning support [pull#392](https://github.com/ridgepole/ridgepole/pull/392)
|
|
112
|
+
|
|
3
113
|
## 1.0
|
|
4
114
|
|
|
115
|
+
### 1.0.7 (2022/06/09)
|
|
116
|
+
|
|
117
|
+
- Normalize list partition values for PostgreSQL [pull#389](https://github.com/ridgepole/ridgepole/pull/389)
|
|
118
|
+
|
|
119
|
+
### 1.0.6 (2022/06/06)
|
|
120
|
+
|
|
121
|
+
- Support Hash partition for PostgreSQL [pull#387](https://github.com/ridgepole/ridgepole/pull/387)
|
|
122
|
+
|
|
123
|
+
### 1.0.5 (2022/06/05)
|
|
124
|
+
|
|
125
|
+
- Support DEFAULT partition for PostgreSQL [pull#386](https://github.com/ridgepole/ridgepole/pull/386)
|
|
126
|
+
|
|
127
|
+
### 1.0.4 (2022/03/28)
|
|
128
|
+
|
|
129
|
+
- Add warning for generated column [pull#382](https://github.com/ridgepole/ridgepole/pull/382)
|
|
130
|
+
|
|
131
|
+
### 1.0.3 (2022/02/12)
|
|
132
|
+
|
|
133
|
+
- Support Rails 7.0.2 [pull#380](https://github.com/ridgepole/ridgepole/pull/380)
|
|
134
|
+
|
|
135
|
+
### 1.0.2 (2022/02/06)
|
|
136
|
+
|
|
137
|
+
- Add support for partitioning ([pull#374](https://github.com/ridgepole/ridgepole/pull/374))
|
|
138
|
+
- Suppress warning of table option differences ([pull#378](https://github.com/ridgepole/ridgepole/pull/378))
|
|
139
|
+
|
|
5
140
|
### 1.0.1 (2022/01/15)
|
|
6
141
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
142
|
+
- Fix code for RuboCop 1.24.1
|
|
143
|
+
- Fix PostgreSQL spec for Rails 7.0
|
|
144
|
+
- Update ERBh gem (for development)
|
|
10
145
|
|
|
11
146
|
### 1.0.0 (2021/12/19)
|
|
12
147
|
|
|
13
|
-
|
|
14
|
-
|
|
148
|
+
- Support Rails 7.0
|
|
149
|
+
- `--skip-drop-table` by default ([pull#363](https://github.com/ridgepole/ridgepole/pull/363))
|
|
15
150
|
|
|
16
151
|
## 0.9
|
|
17
152
|
|
|
18
153
|
### 0.9.6
|
|
19
154
|
|
|
20
|
-
|
|
155
|
+
- Fix malformed error ([pull#362](https://github.com/ridgepole/ridgepole/pull/362))
|
|
21
156
|
|
|
22
157
|
### 0.9.5
|
|
23
158
|
|
|
24
|
-
|
|
159
|
+
- Call `super` in `disable_table_options.rb` ([pull#357](https://github.com/ridgepole/ridgepole/pull/357))
|
|
25
160
|
|
|
26
161
|
### 0.9.4
|
|
27
162
|
|
|
28
|
-
|
|
163
|
+
- Fix `--alter-extra` option for unique index ([pull#356](https://github.com/ridgepole/ridgepole/pull/356))
|
|
29
164
|
|
|
30
165
|
### 0.9.3
|
|
31
166
|
|
|
32
|
-
|
|
167
|
+
- Fix `limit` option for `t.integer` ([pull#354](https://github.com/ridgepole/ridgepole/pull/354))
|
|
33
168
|
|
|
34
169
|
### 0.9.2
|
|
35
170
|
|
|
36
|
-
|
|
171
|
+
- Support `t.column index option` ([pull#353](https://github.com/ridgepole/ridgepole/pull/353))
|
|
37
172
|
|
|
38
173
|
### 0.9.1
|
|
39
174
|
|
|
40
|
-
|
|
175
|
+
- Support `t.foreign_key` ([pull#348](https://github.com/ridgepole/ridgepole/pull/348))
|
|
41
176
|
|
|
42
177
|
### 0.9.0
|
|
43
178
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
179
|
+
- Remove `--mysql-use-alter` option ([pull#330](https://github.com/ridgepole/ridgepole/pull/330))
|
|
180
|
+
- Add `--table-hash-options` option ([pull#331](https://github.com/ridgepole/ridgepole/pull/331))
|
|
181
|
+
- Support Rails 6.1 ([pull#323](https://github.com/ridgepole/ridgepole/pull/323))
|
|
182
|
+
- Disable Rails 5.0 support ([pull#335](https://github.com/ridgepole/ridgepole/pull/335))
|
|
183
|
+
- Fix PK AUTO_INCREMENT change bug ([pull#334](https://github.com/ridgepole/ridgepole/pull/334))
|
|
49
184
|
|
|
50
185
|
## 0.8
|
|
51
186
|
|
|
52
187
|
### 0.8.13
|
|
53
188
|
|
|
54
|
-
|
|
189
|
+
- Support `serial` and `bigserial` column types ([pull#321](https://github.com/ridgepole/ridgepole/pull/321))
|
|
55
190
|
|
|
56
191
|
### 0.8.12
|
|
57
192
|
|
|
58
|
-
|
|
193
|
+
- Pluralize column specified by `references` ([pull#317](https://github.com/ridgepole/ridgepole/pull/317))
|
|
59
194
|
|
|
60
195
|
### 0.8.11
|
|
61
196
|
|
|
62
|
-
|
|
63
|
-
|
|
197
|
+
- Fix FK index check support multiple PK ([pull#315](https://github.com/ridgepole/ridgepole/pull/315))
|
|
198
|
+
- Support t.reference() foreign_key option ([pull#316](https://github.com/ridgepole/ridgepole/pull/316))
|
|
64
199
|
|
|
65
200
|
### 0.8.10
|
|
66
201
|
|
|
67
|
-
|
|
202
|
+
- Raise an error if an InnoDB column has a foreign key but no index ([pull#310](https://github.com/ridgepole/ridgepole/pull/310))
|
|
68
203
|
|
|
69
204
|
### 0.8.9
|
|
70
205
|
|
|
71
|
-
|
|
72
|
-
|
|
206
|
+
- Fix unexpected differences on text types and blob types on Rails 6 ([pull#306](https://github.com/ridgepole/ridgepole/pull/306))
|
|
207
|
+
- Fix unexpected warning when a foreign key is added on the primary key ([pull#307](https://github.com/ridgepole/ridgepole/pull/307))
|
|
73
208
|
|
|
74
209
|
### 0.8.8
|
|
75
210
|
|
|
76
|
-
|
|
211
|
+
- Fix keyword arguments warnings in Ruby 2.7 ([pull#303](https://github.com/ridgepole/ridgepole/pull/303))
|
|
77
212
|
|
|
78
213
|
### 0.8.7
|
|
79
214
|
|
|
80
|
-
|
|
215
|
+
- Support `require_relative` ([pull#298](https://github.com/ridgepole/ridgepole/pull/298))
|
|
81
216
|
|
|
82
217
|
### 0.8.6
|
|
83
218
|
|
|
84
|
-
|
|
219
|
+
- Support multiple databases feature ([pull#297](https://github.com/ridgepole/ridgepole/pull/297))
|
|
85
220
|
|
|
86
221
|
### 0.8.5
|
|
87
222
|
|
|
88
|
-
|
|
223
|
+
- Improve warning message on table options ([pull#291](https://github.com/ridgepole/ridgepole/pull/291))
|
|
89
224
|
|
|
90
225
|
### 0.8.4
|
|
91
226
|
|
|
92
|
-
|
|
227
|
+
- Display a warning if an InnoDB table doesn't have any indexes on a column where it has a foreign key ([pull#290](https://github.com/ridgepole/ridgepole/pull/290))
|
|
93
228
|
|
|
94
229
|
### 0.8.3
|
|
95
230
|
|
|
96
|
-
|
|
231
|
+
- Fix "topological sort failed" error ([pull#287](https://github.com/ridgepole/ridgepole/pull/287))
|
|
97
232
|
|
|
98
233
|
### 0.8.2
|
|
99
234
|
|
|
100
|
-
|
|
235
|
+
- Support `postgres://` schema ([pull#285](https://github.com/ridgepole/ridgepole/pull/285))
|
|
101
236
|
|
|
102
237
|
### 0.8.1
|
|
103
238
|
|
|
104
|
-
|
|
239
|
+
- Drop tables in an order considering foreign key constraints ([pull#284](https://github.com/ridgepole/ridgepole/pull/284))
|
|
105
240
|
|
|
106
241
|
### 0.8.0
|
|
107
242
|
|
|
108
|
-
|
|
243
|
+
- Support Rails 6.0
|
|
109
244
|
|
|
110
245
|
## 0.7
|
|
111
246
|
|
|
112
247
|
### 0.7.8
|
|
113
248
|
|
|
114
|
-
|
|
249
|
+
- Fix for `add_foreign_key(..., column: ,,,)` ([pull#278](https://github.com/ridgepole/ridgepole/pull/278))
|
|
115
250
|
|
|
116
251
|
### 0.7.7
|
|
117
252
|
|
|
118
|
-
|
|
253
|
+
- Support URI query string ([pull#273](https://github.com/ridgepole/ridgepole/pull/273))
|
|
119
254
|
|
|
120
255
|
### 0.7.6
|
|
121
256
|
|
|
122
|
-
|
|
123
|
-
|
|
257
|
+
- Fix database url check ([pull#266](https://github.com/ridgepole/ridgepole/pull/266))
|
|
258
|
+
- Add ignore option ([pull#267](https://github.com/ridgepole/ridgepole/pull/267))
|
|
124
259
|
|
|
125
260
|
### 0.7.5
|
|
126
261
|
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
262
|
+
- Fix polymorphic options ([pull#263](https://github.com/ridgepole/ridgepole/pull/263))
|
|
263
|
+
- Fix `--mysql-use-alter` option ([pull#246](https://github.com/ridgepole/ridgepole/pull/264))
|
|
264
|
+
- Fix Database URI parsing ([pull#265](https://github.com/ridgepole/ridgepole/pull/265))
|
|
130
265
|
|
|
131
266
|
### 0.7.4
|
|
132
267
|
|
|
133
|
-
|
|
268
|
+
- Fix `add_foreign_key` options ([issue#250](https://github.com/ridgepole/ridgepole/issues/250))
|
|
134
269
|
|
|
135
270
|
### 0.7.3
|
|
136
271
|
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
272
|
+
- Add `--mysql-change-table-comment option` ([pull#166](https://github.com/ridgepole/ridgepole/pull/166))
|
|
273
|
+
- Refactoring with RuboCop
|
|
274
|
+
- Support primary key adding/dropping ([issue#246](https://github.com/ridgepole/ridgepole/issues/246))
|
|
140
275
|
|
|
141
276
|
### 0.7.2
|
|
142
277
|
|
|
143
|
-
|
|
278
|
+
- Support Rails 5.2
|
|
144
279
|
|
|
145
280
|
### 0.7.1
|
|
146
281
|
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
282
|
+
- Remove `--reverse` option
|
|
283
|
+
- Add `--allow-pk-change` option
|
|
284
|
+
- Add `--create-table-with-index` option
|
|
285
|
+
- Add `--mysql-dump-auto-increment` option (`rails >= 5.1`)
|
|
151
286
|
|
|
152
287
|
### 0.7.0
|
|
153
288
|
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
289
|
+
- Remove Rails 4.x support
|
|
290
|
+
- Add Rails 5.1 support
|
|
291
|
+
- Remove `--enable-mysql-awesome` option
|
|
292
|
+
- Add `--skip-drop-table` option
|
|
293
|
+
- Support foreign key without name
|
|
294
|
+
- Support MySQL JSON Type and Generated Columns
|
|
295
|
+
- Add `--mysql-change-table-options` option
|
|
296
|
+
- Pass config from env
|
|
297
|
+
- Fix change fk order
|
|
298
|
+
- Add `--check-relation-type` option
|
|
299
|
+
- Add `--skip-column-comment-change` option
|
|
300
|
+
- Add `--default-bigint-limit` option
|
|
301
|
+
- Add `--ignore-table-comment` option
|
|
167
302
|
|
|
168
303
|
## 0.6
|
|
169
304
|
|
|
170
305
|
### 0.6.6
|
|
171
306
|
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
307
|
+
- Use `t.column` for migration ([pull#114](https://github.com/ridgepole/ridgepole/pull/114))
|
|
308
|
+
- Support DATABASE_URL format ([pull#118](https://github.com/ridgepole/ridgepole/pull/118))
|
|
309
|
+
- Add Ruby2.4 CI ([pull#119](https://github.com/ridgepole/ridgepole/pull/119))
|
|
175
310
|
|
|
176
311
|
### 0.6.5
|
|
177
312
|
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
313
|
+
- Fix rails version `'>= 4.2', '< 6'`
|
|
314
|
+
- Support new types ([pull#84](https://github.com/ridgepole/ridgepole/pull/84))
|
|
315
|
+
- Support `default: -> { ... }` ([pull#85](https://github.com/ridgepole/ridgepole/pull/85))
|
|
316
|
+
- Support DDL Comment (Rails5 only)
|
|
317
|
+
- Output schema diff when pass `--verbose`
|
|
318
|
+
- Support composite primary key (Rails5 only / [pull#97](https://github.com/ridgepole/ridgepole/pull/97))
|
|
184
319
|
|
|
185
320
|
### 0.6.4
|
|
186
321
|
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
322
|
+
- Execute sql using external script ([pull#56](https://github.com/ridgepole/ridgepole/pull/56))
|
|
323
|
+
- Add `--mysql-use-alter` option
|
|
324
|
+
- Add `--alter-extra` option
|
|
325
|
+
- Add `--dump-with-default-fk-name` option
|
|
326
|
+
- Support `t.index` ([pull#64](https://github.com/ridgepole/ridgepole/pull/64))
|
|
327
|
+
- Remove migration_comments
|
|
328
|
+
- Fix foreign key apply order
|
|
194
329
|
|
|
195
330
|
### 0.6.3
|
|
196
331
|
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
332
|
+
- Fix `default` option ([pull#48](https://github.com/ridgepole/ridgepole/pull/48))
|
|
333
|
+
- Add `--enable-migration-comments` option ([pull#50](https://github.com/ridgepole/ridgepole/pull/50))
|
|
334
|
+
- Disable `rename_table_indexes`
|
|
200
335
|
|
|
201
336
|
### 0.6.1
|
|
202
337
|
|
|
203
|
-
|
|
338
|
+
- Support [PostgreSQL columns](https://github.com/winebarrel/rails/blob/v4.2.1/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb#L79)
|
|
204
339
|
|
|
205
340
|
### 0.6.0
|
|
206
341
|
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
342
|
+
- Fix rails version `~> 4.2.1`
|
|
343
|
+
- Disable following libraries support:
|
|
344
|
+
- activerecord-mysql-unsigned
|
|
345
|
+
- migration_comments
|
|
346
|
+
- foreigner
|
|
347
|
+
- Disable sqlite support
|
|
348
|
+
- Add PostgreSQL test
|
|
349
|
+
- Remove `--mysql-awesome-unsigned-pk` option
|
|
215
350
|
|
|
216
351
|
## 0.5
|
|
217
352
|
|
|
218
353
|
### 0.5.2
|
|
219
354
|
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
355
|
+
- Add `--enable-mysql-awesome` option ([activerecord-mysql-awesome](https://github.com/kamipo/activerecord-mysql-awesome) is required `>= 0.0.3`)
|
|
356
|
+
- It is not possible to enable both `--enable-mysql-awesome` and `--enable-migration-comments`, `--enable-mysql-awesome` and `--enable-mysql-unsigned`, `--enable-mysql-awesome` and `--enable-mysql-pkdump`
|
|
357
|
+
- Fix foreigner version `<= 1.7.1`
|
|
223
358
|
|
|
224
359
|
### 0.5.1
|
|
225
360
|
|
|
226
|
-
|
|
227
|
-
|
|
361
|
+
- Add `--enable-migration-comments` option ([migration_comments](https://github.com/pinnymz/migration_comments) is required)
|
|
362
|
+
- Fix rails version `< 4.2.0`
|
|
228
363
|
|
|
229
364
|
### 0.5.0
|
|
230
365
|
|
|
231
|
-
|
|
366
|
+
- Fix `activerecord-mysql-unsigned` version: `~> 0.3.1`
|
|
232
367
|
|
|
233
368
|
## 0.4
|
|
234
369
|
|
|
235
370
|
### 0.4.12
|
|
236
371
|
|
|
237
|
-
|
|
372
|
+
- Fix `activerecord-mysql-unsigned` version: `~> 0.2.0`
|
|
238
373
|
|
|
239
374
|
### 0.4.11
|
|
240
375
|
|
|
241
|
-
|
|
376
|
+
- Add `--enable-mysql-pkdump` option.
|
|
242
377
|
|
|
243
378
|
### 0.4.8
|
|
244
379
|
|
|
245
|
-
|
|
246
|
-
|
|
380
|
+
- `activerecord-mysql-unsigned` is now optional. Please pass `--enable-mysql-unsigned` after you install [activerecord-mysql-unsigned](https://github.com/waka/activerecord-mysql-unsigned) if you want to use.
|
|
381
|
+
- Please pass `--enable-foreigner` after you install [foreigner](https://github.com/matthuhiggins/foreigner) if you want to use the foreign key.
|