data_migrate 10.0.3.rc → 11.0.0.rc

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/build.yml +4 -4
  3. data/.github/workflows/gempush.yml +6 -8
  4. data/.gitignore +0 -1
  5. data/Appraisals +10 -5
  6. data/Changelog.md +32 -6
  7. data/Gemfile +0 -1
  8. data/Gemfile.lock +188 -0
  9. data/README.md +13 -4
  10. data/data_migrate.gemspec +2 -2
  11. data/gemfiles/rails_6.1.gemfile +0 -1
  12. data/gemfiles/rails_6.1.gemfile.lock +233 -0
  13. data/gemfiles/rails_7.0.gemfile +1 -2
  14. data/gemfiles/rails_7.0.gemfile.lock +234 -0
  15. data/gemfiles/{rails_6.0.gemfile → rails_7.1.gemfile} +1 -2
  16. data/gemfiles/rails_7.1.gemfile.lock +266 -0
  17. data/gemfiles/rails_7.2.gemfile +7 -0
  18. data/gemfiles/rails_7.2.gemfile.lock +265 -0
  19. data/lib/data_migrate/data_migrator.rb +15 -23
  20. data/lib/data_migrate/data_schema.rb +2 -2
  21. data/lib/data_migrate/data_schema_migration.rb +24 -7
  22. data/lib/data_migrate/database_configurations_wrapper.rb +11 -0
  23. data/lib/data_migrate/database_tasks.rb +194 -48
  24. data/lib/data_migrate/migration_context.rb +11 -8
  25. data/lib/data_migrate/rails_helper.rb +90 -0
  26. data/lib/data_migrate/schema_dumper.rb +1 -1
  27. data/lib/data_migrate/schema_migration.rb +5 -4
  28. data/lib/data_migrate/status_service.rb +3 -3
  29. data/lib/data_migrate/tasks/data_migrate_tasks.rb +13 -14
  30. data/lib/data_migrate/test.rb +14 -0
  31. data/lib/data_migrate/version.rb +1 -1
  32. data/lib/data_migrate.rb +2 -1
  33. data/spec/data_migrate/data_migrator_spec.rb +17 -14
  34. data/spec/data_migrate/data_schema_migration_spec.rb +25 -8
  35. data/spec/data_migrate/data_spec.rb +1 -1
  36. data/spec/data_migrate/database_tasks_spec.rb +34 -19
  37. data/spec/data_migrate/migration_context_spec.rb +25 -9
  38. data/spec/data_migrate/schema_dumper_spec.rb +6 -3
  39. data/spec/data_migrate/schema_migration_spec.rb +13 -6
  40. data/spec/data_migrate/status_service_spec.rb +6 -3
  41. data/spec/data_migrate/tasks/data_migrate_tasks_spec.rb +13 -14
  42. data/spec/db/data/20091231235959_some_name.rb +1 -1
  43. data/spec/db/data/20171231235959_super_update.rb +1 -1
  44. data/spec/db/migrate/20131111111111_late_migration.rb +1 -1
  45. data/spec/db/migrate/20202020202011_db_migration.rb +1 -1
  46. data/tasks/databases.rake +25 -93
  47. metadata +21 -15
  48. data/Gemfile.rails6.1 +0 -11
  49. data/lib/data_migrate/legacy_migrator.rb +0 -22
  50. data/spec/data_migrate/legacy_migrator_spec.rb +0 -38
@@ -0,0 +1,234 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ data_migrate (11.0.0.rc)
5
+ activerecord (>= 6.1)
6
+ railties (>= 6.1)
7
+
8
+ GEM
9
+ remote: http://rubygems.org/
10
+ specs:
11
+ actioncable (7.0.8.4)
12
+ actionpack (= 7.0.8.4)
13
+ activesupport (= 7.0.8.4)
14
+ nio4r (~> 2.0)
15
+ websocket-driver (>= 0.6.1)
16
+ actionmailbox (7.0.8.4)
17
+ actionpack (= 7.0.8.4)
18
+ activejob (= 7.0.8.4)
19
+ activerecord (= 7.0.8.4)
20
+ activestorage (= 7.0.8.4)
21
+ activesupport (= 7.0.8.4)
22
+ mail (>= 2.7.1)
23
+ net-imap
24
+ net-pop
25
+ net-smtp
26
+ actionmailer (7.0.8.4)
27
+ actionpack (= 7.0.8.4)
28
+ actionview (= 7.0.8.4)
29
+ activejob (= 7.0.8.4)
30
+ activesupport (= 7.0.8.4)
31
+ mail (~> 2.5, >= 2.5.4)
32
+ net-imap
33
+ net-pop
34
+ net-smtp
35
+ rails-dom-testing (~> 2.0)
36
+ actionpack (7.0.8.4)
37
+ actionview (= 7.0.8.4)
38
+ activesupport (= 7.0.8.4)
39
+ rack (~> 2.0, >= 2.2.4)
40
+ rack-test (>= 0.6.3)
41
+ rails-dom-testing (~> 2.0)
42
+ rails-html-sanitizer (~> 1.0, >= 1.2.0)
43
+ actiontext (7.0.8.4)
44
+ actionpack (= 7.0.8.4)
45
+ activerecord (= 7.0.8.4)
46
+ activestorage (= 7.0.8.4)
47
+ activesupport (= 7.0.8.4)
48
+ globalid (>= 0.6.0)
49
+ nokogiri (>= 1.8.5)
50
+ actionview (7.0.8.4)
51
+ activesupport (= 7.0.8.4)
52
+ builder (~> 3.1)
53
+ erubi (~> 1.4)
54
+ rails-dom-testing (~> 2.0)
55
+ rails-html-sanitizer (~> 1.1, >= 1.2.0)
56
+ activejob (7.0.8.4)
57
+ activesupport (= 7.0.8.4)
58
+ globalid (>= 0.3.6)
59
+ activemodel (7.0.8.4)
60
+ activesupport (= 7.0.8.4)
61
+ activerecord (7.0.8.4)
62
+ activemodel (= 7.0.8.4)
63
+ activesupport (= 7.0.8.4)
64
+ activestorage (7.0.8.4)
65
+ actionpack (= 7.0.8.4)
66
+ activejob (= 7.0.8.4)
67
+ activerecord (= 7.0.8.4)
68
+ activesupport (= 7.0.8.4)
69
+ marcel (~> 1.0)
70
+ mini_mime (>= 1.1.0)
71
+ activesupport (7.0.8.4)
72
+ concurrent-ruby (~> 1.0, >= 1.0.2)
73
+ i18n (>= 1.6, < 2)
74
+ minitest (>= 5.1)
75
+ tzinfo (~> 2.0)
76
+ appraisal (2.4.1)
77
+ bundler
78
+ rake
79
+ thor (>= 0.14.0)
80
+ ast (2.4.2)
81
+ builder (3.3.0)
82
+ childprocess (4.1.0)
83
+ coderay (1.1.3)
84
+ concurrent-ruby (1.3.4)
85
+ crass (1.0.6)
86
+ date (3.3.4)
87
+ diff-lcs (1.5.0)
88
+ erubi (1.13.0)
89
+ globalid (1.2.1)
90
+ activesupport (>= 6.1)
91
+ i18n (1.14.5)
92
+ concurrent-ruby (~> 1.0)
93
+ iniparse (1.5.0)
94
+ json (2.6.3)
95
+ language_server-protocol (3.17.0.3)
96
+ loofah (2.22.0)
97
+ crass (~> 1.0.2)
98
+ nokogiri (>= 1.12.0)
99
+ mail (2.8.1)
100
+ mini_mime (>= 0.1.1)
101
+ net-imap
102
+ net-pop
103
+ net-smtp
104
+ marcel (1.0.4)
105
+ method_source (1.1.0)
106
+ mini_mime (1.1.5)
107
+ minitest (5.25.1)
108
+ net-imap (0.4.14)
109
+ date
110
+ net-protocol
111
+ net-pop (0.1.2)
112
+ net-protocol
113
+ net-protocol (0.2.2)
114
+ timeout
115
+ net-smtp (0.5.0)
116
+ net-protocol
117
+ nio4r (2.7.3)
118
+ nokogiri (1.16.7-aarch64-linux)
119
+ racc (~> 1.4)
120
+ nokogiri (1.16.7-arm64-darwin)
121
+ racc (~> 1.4)
122
+ nokogiri (1.16.7-x86_64-linux)
123
+ racc (~> 1.4)
124
+ overcommit (0.60.0)
125
+ childprocess (>= 0.6.3, < 5)
126
+ iniparse (~> 1.4)
127
+ rexml (~> 3.2)
128
+ parallel (1.23.0)
129
+ parser (3.2.2.3)
130
+ ast (~> 2.4.1)
131
+ racc
132
+ pry (0.14.2)
133
+ coderay (~> 1.1)
134
+ method_source (~> 1.0)
135
+ racc (1.8.1)
136
+ rack (2.2.9)
137
+ rack-test (2.1.0)
138
+ rack (>= 1.3)
139
+ rails (7.0.8.4)
140
+ actioncable (= 7.0.8.4)
141
+ actionmailbox (= 7.0.8.4)
142
+ actionmailer (= 7.0.8.4)
143
+ actionpack (= 7.0.8.4)
144
+ actiontext (= 7.0.8.4)
145
+ actionview (= 7.0.8.4)
146
+ activejob (= 7.0.8.4)
147
+ activemodel (= 7.0.8.4)
148
+ activerecord (= 7.0.8.4)
149
+ activestorage (= 7.0.8.4)
150
+ activesupport (= 7.0.8.4)
151
+ bundler (>= 1.15.0)
152
+ railties (= 7.0.8.4)
153
+ rails-dom-testing (2.2.0)
154
+ activesupport (>= 5.0.0)
155
+ minitest
156
+ nokogiri (>= 1.6)
157
+ rails-html-sanitizer (1.6.0)
158
+ loofah (~> 2.21)
159
+ nokogiri (~> 1.14)
160
+ railties (7.0.8.4)
161
+ actionpack (= 7.0.8.4)
162
+ activesupport (= 7.0.8.4)
163
+ method_source
164
+ rake (>= 12.2)
165
+ thor (~> 1.0)
166
+ zeitwerk (~> 2.5)
167
+ rainbow (3.1.1)
168
+ rake (13.2.1)
169
+ rb-readline (0.5.5)
170
+ regexp_parser (2.8.1)
171
+ rexml (3.2.5)
172
+ rspec (3.12.0)
173
+ rspec-core (~> 3.12.0)
174
+ rspec-expectations (~> 3.12.0)
175
+ rspec-mocks (~> 3.12.0)
176
+ rspec-core (3.12.2)
177
+ rspec-support (~> 3.12.0)
178
+ rspec-expectations (3.12.3)
179
+ diff-lcs (>= 1.2.0, < 2.0)
180
+ rspec-support (~> 3.12.0)
181
+ rspec-mocks (3.12.5)
182
+ diff-lcs (>= 1.2.0, < 2.0)
183
+ rspec-support (~> 3.12.0)
184
+ rspec-support (3.12.1)
185
+ rubocop (1.54.1)
186
+ json (~> 2.3)
187
+ language_server-protocol (>= 3.17.0)
188
+ parallel (~> 1.10)
189
+ parser (>= 3.2.2.3)
190
+ rainbow (>= 2.2.2, < 4.0)
191
+ regexp_parser (>= 1.8, < 3.0)
192
+ rexml (>= 3.2.5, < 4.0)
193
+ rubocop-ast (>= 1.28.0, < 2.0)
194
+ ruby-progressbar (~> 1.7)
195
+ unicode-display_width (>= 2.4.0, < 3.0)
196
+ rubocop-ast (1.29.0)
197
+ parser (>= 3.2.1.0)
198
+ ruby-progressbar (1.13.0)
199
+ sqlite3 (1.7.2-aarch64-linux)
200
+ sqlite3 (1.7.2-arm64-darwin)
201
+ sqlite3 (1.7.2-x86_64-linux)
202
+ thor (1.3.1)
203
+ timecop (0.9.6)
204
+ timeout (0.4.1)
205
+ tzinfo (2.0.6)
206
+ concurrent-ruby (~> 1.0)
207
+ unicode-display_width (2.4.2)
208
+ websocket-driver (0.7.6)
209
+ websocket-extensions (>= 0.1.0)
210
+ websocket-extensions (0.1.5)
211
+ zeitwerk (2.6.17)
212
+
213
+ PLATFORMS
214
+ aarch64-linux
215
+ arm64-darwin-22
216
+ arm64-darwin-23
217
+ x86_64-linux
218
+
219
+ DEPENDENCIES
220
+ appraisal
221
+ data_migrate!
222
+ overcommit
223
+ pry
224
+ rails (~> 7.0.0)
225
+ rake
226
+ rb-readline
227
+ rspec
228
+ rspec-core
229
+ rubocop
230
+ sqlite3
231
+ timecop
232
+
233
+ BUNDLED WITH
234
+ 2.5.6
@@ -2,7 +2,6 @@
2
2
 
3
3
  source "http://rubygems.org"
4
4
 
5
- gem "rails", "~> 6.0.0"
6
- gem "sqlite3", "~> 1.4"
5
+ gem "rails", "~> 7.1.0"
7
6
 
8
7
  gemspec path: "../"
@@ -0,0 +1,266 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ data_migrate (11.0.0.rc)
5
+ activerecord (>= 6.1)
6
+ railties (>= 6.1)
7
+
8
+ GEM
9
+ remote: http://rubygems.org/
10
+ specs:
11
+ actioncable (7.1.3.4)
12
+ actionpack (= 7.1.3.4)
13
+ activesupport (= 7.1.3.4)
14
+ nio4r (~> 2.0)
15
+ websocket-driver (>= 0.6.1)
16
+ zeitwerk (~> 2.6)
17
+ actionmailbox (7.1.3.4)
18
+ actionpack (= 7.1.3.4)
19
+ activejob (= 7.1.3.4)
20
+ activerecord (= 7.1.3.4)
21
+ activestorage (= 7.1.3.4)
22
+ activesupport (= 7.1.3.4)
23
+ mail (>= 2.7.1)
24
+ net-imap
25
+ net-pop
26
+ net-smtp
27
+ actionmailer (7.1.3.4)
28
+ actionpack (= 7.1.3.4)
29
+ actionview (= 7.1.3.4)
30
+ activejob (= 7.1.3.4)
31
+ activesupport (= 7.1.3.4)
32
+ mail (~> 2.5, >= 2.5.4)
33
+ net-imap
34
+ net-pop
35
+ net-smtp
36
+ rails-dom-testing (~> 2.2)
37
+ actionpack (7.1.3.4)
38
+ actionview (= 7.1.3.4)
39
+ activesupport (= 7.1.3.4)
40
+ nokogiri (>= 1.8.5)
41
+ racc
42
+ rack (>= 2.2.4)
43
+ rack-session (>= 1.0.1)
44
+ rack-test (>= 0.6.3)
45
+ rails-dom-testing (~> 2.2)
46
+ rails-html-sanitizer (~> 1.6)
47
+ actiontext (7.1.3.4)
48
+ actionpack (= 7.1.3.4)
49
+ activerecord (= 7.1.3.4)
50
+ activestorage (= 7.1.3.4)
51
+ activesupport (= 7.1.3.4)
52
+ globalid (>= 0.6.0)
53
+ nokogiri (>= 1.8.5)
54
+ actionview (7.1.3.4)
55
+ activesupport (= 7.1.3.4)
56
+ builder (~> 3.1)
57
+ erubi (~> 1.11)
58
+ rails-dom-testing (~> 2.2)
59
+ rails-html-sanitizer (~> 1.6)
60
+ activejob (7.1.3.4)
61
+ activesupport (= 7.1.3.4)
62
+ globalid (>= 0.3.6)
63
+ activemodel (7.1.3.4)
64
+ activesupport (= 7.1.3.4)
65
+ activerecord (7.1.3.4)
66
+ activemodel (= 7.1.3.4)
67
+ activesupport (= 7.1.3.4)
68
+ timeout (>= 0.4.0)
69
+ activestorage (7.1.3.4)
70
+ actionpack (= 7.1.3.4)
71
+ activejob (= 7.1.3.4)
72
+ activerecord (= 7.1.3.4)
73
+ activesupport (= 7.1.3.4)
74
+ marcel (~> 1.0)
75
+ activesupport (7.1.3.4)
76
+ base64
77
+ bigdecimal
78
+ concurrent-ruby (~> 1.0, >= 1.0.2)
79
+ connection_pool (>= 2.2.5)
80
+ drb
81
+ i18n (>= 1.6, < 2)
82
+ minitest (>= 5.1)
83
+ mutex_m
84
+ tzinfo (~> 2.0)
85
+ appraisal (2.5.0)
86
+ bundler
87
+ rake
88
+ thor (>= 0.14.0)
89
+ ast (2.4.2)
90
+ base64 (0.2.0)
91
+ bigdecimal (3.1.8)
92
+ builder (3.3.0)
93
+ childprocess (4.1.0)
94
+ coderay (1.1.3)
95
+ concurrent-ruby (1.3.4)
96
+ connection_pool (2.4.1)
97
+ crass (1.0.6)
98
+ date (3.3.4)
99
+ diff-lcs (1.5.0)
100
+ drb (2.2.1)
101
+ erubi (1.13.0)
102
+ globalid (1.2.1)
103
+ activesupport (>= 6.1)
104
+ i18n (1.14.5)
105
+ concurrent-ruby (~> 1.0)
106
+ iniparse (1.5.0)
107
+ io-console (0.7.2)
108
+ irb (1.14.0)
109
+ rdoc (>= 4.0.0)
110
+ reline (>= 0.4.2)
111
+ json (2.6.3)
112
+ language_server-protocol (3.17.0.3)
113
+ loofah (2.22.0)
114
+ crass (~> 1.0.2)
115
+ nokogiri (>= 1.12.0)
116
+ mail (2.8.1)
117
+ mini_mime (>= 0.1.1)
118
+ net-imap
119
+ net-pop
120
+ net-smtp
121
+ marcel (1.0.4)
122
+ method_source (1.0.0)
123
+ mini_mime (1.1.5)
124
+ minitest (5.25.1)
125
+ mutex_m (0.2.0)
126
+ net-imap (0.4.14)
127
+ date
128
+ net-protocol
129
+ net-pop (0.1.2)
130
+ net-protocol
131
+ net-protocol (0.2.2)
132
+ timeout
133
+ net-smtp (0.5.0)
134
+ net-protocol
135
+ nio4r (2.7.3)
136
+ nokogiri (1.16.7-aarch64-linux)
137
+ racc (~> 1.4)
138
+ nokogiri (1.16.7-arm64-darwin)
139
+ racc (~> 1.4)
140
+ nokogiri (1.16.7-x86_64-linux)
141
+ racc (~> 1.4)
142
+ overcommit (0.60.0)
143
+ childprocess (>= 0.6.3, < 5)
144
+ iniparse (~> 1.4)
145
+ rexml (~> 3.2)
146
+ parallel (1.23.0)
147
+ parser (3.2.2.3)
148
+ ast (~> 2.4.1)
149
+ racc
150
+ pry (0.14.2)
151
+ coderay (~> 1.1)
152
+ method_source (~> 1.0)
153
+ psych (5.1.2)
154
+ stringio
155
+ racc (1.8.1)
156
+ rack (3.1.7)
157
+ rack-session (2.0.0)
158
+ rack (>= 3.0.0)
159
+ rack-test (2.1.0)
160
+ rack (>= 1.3)
161
+ rackup (2.1.0)
162
+ rack (>= 3)
163
+ webrick (~> 1.8)
164
+ rails (7.1.3.4)
165
+ actioncable (= 7.1.3.4)
166
+ actionmailbox (= 7.1.3.4)
167
+ actionmailer (= 7.1.3.4)
168
+ actionpack (= 7.1.3.4)
169
+ actiontext (= 7.1.3.4)
170
+ actionview (= 7.1.3.4)
171
+ activejob (= 7.1.3.4)
172
+ activemodel (= 7.1.3.4)
173
+ activerecord (= 7.1.3.4)
174
+ activestorage (= 7.1.3.4)
175
+ activesupport (= 7.1.3.4)
176
+ bundler (>= 1.15.0)
177
+ railties (= 7.1.3.4)
178
+ rails-dom-testing (2.2.0)
179
+ activesupport (>= 5.0.0)
180
+ minitest
181
+ nokogiri (>= 1.6)
182
+ rails-html-sanitizer (1.6.0)
183
+ loofah (~> 2.21)
184
+ nokogiri (~> 1.14)
185
+ railties (7.1.3.4)
186
+ actionpack (= 7.1.3.4)
187
+ activesupport (= 7.1.3.4)
188
+ irb
189
+ rackup (>= 1.0.0)
190
+ rake (>= 12.2)
191
+ thor (~> 1.0, >= 1.2.2)
192
+ zeitwerk (~> 2.6)
193
+ rainbow (3.1.1)
194
+ rake (13.2.1)
195
+ rb-readline (0.5.5)
196
+ rdoc (6.7.0)
197
+ psych (>= 4.0.0)
198
+ regexp_parser (2.8.1)
199
+ reline (0.5.9)
200
+ io-console (~> 0.5)
201
+ rexml (3.2.5)
202
+ rspec (3.12.0)
203
+ rspec-core (~> 3.12.0)
204
+ rspec-expectations (~> 3.12.0)
205
+ rspec-mocks (~> 3.12.0)
206
+ rspec-core (3.12.2)
207
+ rspec-support (~> 3.12.0)
208
+ rspec-expectations (3.12.3)
209
+ diff-lcs (>= 1.2.0, < 2.0)
210
+ rspec-support (~> 3.12.0)
211
+ rspec-mocks (3.12.6)
212
+ diff-lcs (>= 1.2.0, < 2.0)
213
+ rspec-support (~> 3.12.0)
214
+ rspec-support (3.12.1)
215
+ rubocop (1.54.2)
216
+ json (~> 2.3)
217
+ language_server-protocol (>= 3.17.0)
218
+ parallel (~> 1.10)
219
+ parser (>= 3.2.2.3)
220
+ rainbow (>= 2.2.2, < 4.0)
221
+ regexp_parser (>= 1.8, < 3.0)
222
+ rexml (>= 3.2.5, < 4.0)
223
+ rubocop-ast (>= 1.28.0, < 2.0)
224
+ ruby-progressbar (~> 1.7)
225
+ unicode-display_width (>= 2.4.0, < 3.0)
226
+ rubocop-ast (1.29.0)
227
+ parser (>= 3.2.1.0)
228
+ ruby-progressbar (1.13.0)
229
+ sqlite3 (1.7.2-aarch64-linux)
230
+ sqlite3 (1.7.2-arm64-darwin)
231
+ sqlite3 (1.7.2-x86_64-linux)
232
+ stringio (3.1.1)
233
+ thor (1.3.1)
234
+ timecop (0.9.6)
235
+ timeout (0.4.1)
236
+ tzinfo (2.0.6)
237
+ concurrent-ruby (~> 1.0)
238
+ unicode-display_width (2.4.2)
239
+ webrick (1.8.1)
240
+ websocket-driver (0.7.6)
241
+ websocket-extensions (>= 0.1.0)
242
+ websocket-extensions (0.1.5)
243
+ zeitwerk (2.6.17)
244
+
245
+ PLATFORMS
246
+ aarch64-linux
247
+ arm64-darwin-22
248
+ arm64-darwin-23
249
+ x86_64-linux
250
+
251
+ DEPENDENCIES
252
+ appraisal
253
+ data_migrate!
254
+ overcommit
255
+ pry
256
+ rails (~> 7.1.0)
257
+ rake
258
+ rb-readline
259
+ rspec
260
+ rspec-core
261
+ rubocop
262
+ sqlite3
263
+ timecop
264
+
265
+ BUNDLED WITH
266
+ 2.4.17
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "http://rubygems.org"
4
+
5
+ gem "rails", "~> 7.2.0"
6
+
7
+ gemspec path: "../"