data_migrate 10.0.3.rc → 11.0.0.rc3

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 +192 -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 +237 -0
  13. data/gemfiles/rails_7.0.gemfile +1 -2
  14. data/gemfiles/rails_7.0.gemfile.lock +238 -0
  15. data/gemfiles/{rails_6.0.gemfile → rails_7.1.gemfile} +1 -2
  16. data/gemfiles/rails_7.1.gemfile.lock +270 -0
  17. data/gemfiles/rails_7.2.gemfile +7 -0
  18. data/gemfiles/rails_7.2.gemfile.lock +269 -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 +199 -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,238 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ data_migrate (11.0.0.rc3)
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-darwin)
123
+ racc (~> 1.4)
124
+ nokogiri (1.16.7-x86_64-linux)
125
+ racc (~> 1.4)
126
+ overcommit (0.60.0)
127
+ childprocess (>= 0.6.3, < 5)
128
+ iniparse (~> 1.4)
129
+ rexml (~> 3.2)
130
+ parallel (1.23.0)
131
+ parser (3.2.2.3)
132
+ ast (~> 2.4.1)
133
+ racc
134
+ pry (0.14.2)
135
+ coderay (~> 1.1)
136
+ method_source (~> 1.0)
137
+ racc (1.8.1)
138
+ rack (2.2.9)
139
+ rack-test (2.1.0)
140
+ rack (>= 1.3)
141
+ rails (7.0.8.4)
142
+ actioncable (= 7.0.8.4)
143
+ actionmailbox (= 7.0.8.4)
144
+ actionmailer (= 7.0.8.4)
145
+ actionpack (= 7.0.8.4)
146
+ actiontext (= 7.0.8.4)
147
+ actionview (= 7.0.8.4)
148
+ activejob (= 7.0.8.4)
149
+ activemodel (= 7.0.8.4)
150
+ activerecord (= 7.0.8.4)
151
+ activestorage (= 7.0.8.4)
152
+ activesupport (= 7.0.8.4)
153
+ bundler (>= 1.15.0)
154
+ railties (= 7.0.8.4)
155
+ rails-dom-testing (2.2.0)
156
+ activesupport (>= 5.0.0)
157
+ minitest
158
+ nokogiri (>= 1.6)
159
+ rails-html-sanitizer (1.6.0)
160
+ loofah (~> 2.21)
161
+ nokogiri (~> 1.14)
162
+ railties (7.0.8.4)
163
+ actionpack (= 7.0.8.4)
164
+ activesupport (= 7.0.8.4)
165
+ method_source
166
+ rake (>= 12.2)
167
+ thor (~> 1.0)
168
+ zeitwerk (~> 2.5)
169
+ rainbow (3.1.1)
170
+ rake (13.2.1)
171
+ rb-readline (0.5.5)
172
+ regexp_parser (2.8.1)
173
+ rexml (3.2.5)
174
+ rspec (3.12.0)
175
+ rspec-core (~> 3.12.0)
176
+ rspec-expectations (~> 3.12.0)
177
+ rspec-mocks (~> 3.12.0)
178
+ rspec-core (3.12.2)
179
+ rspec-support (~> 3.12.0)
180
+ rspec-expectations (3.12.3)
181
+ diff-lcs (>= 1.2.0, < 2.0)
182
+ rspec-support (~> 3.12.0)
183
+ rspec-mocks (3.12.5)
184
+ diff-lcs (>= 1.2.0, < 2.0)
185
+ rspec-support (~> 3.12.0)
186
+ rspec-support (3.12.1)
187
+ rubocop (1.54.1)
188
+ json (~> 2.3)
189
+ language_server-protocol (>= 3.17.0)
190
+ parallel (~> 1.10)
191
+ parser (>= 3.2.2.3)
192
+ rainbow (>= 2.2.2, < 4.0)
193
+ regexp_parser (>= 1.8, < 3.0)
194
+ rexml (>= 3.2.5, < 4.0)
195
+ rubocop-ast (>= 1.28.0, < 2.0)
196
+ ruby-progressbar (~> 1.7)
197
+ unicode-display_width (>= 2.4.0, < 3.0)
198
+ rubocop-ast (1.29.0)
199
+ parser (>= 3.2.1.0)
200
+ ruby-progressbar (1.13.0)
201
+ sqlite3 (1.7.2-aarch64-linux)
202
+ sqlite3 (1.7.2-arm64-darwin)
203
+ sqlite3 (1.7.2-x86_64-darwin)
204
+ sqlite3 (1.7.2-x86_64-linux)
205
+ thor (1.3.1)
206
+ timecop (0.9.6)
207
+ timeout (0.4.1)
208
+ tzinfo (2.0.6)
209
+ concurrent-ruby (~> 1.0)
210
+ unicode-display_width (2.4.2)
211
+ websocket-driver (0.7.6)
212
+ websocket-extensions (>= 0.1.0)
213
+ websocket-extensions (0.1.5)
214
+ zeitwerk (2.6.17)
215
+
216
+ PLATFORMS
217
+ aarch64-linux
218
+ arm64-darwin-22
219
+ arm64-darwin-23
220
+ x86_64-darwin-22
221
+ x86_64-linux
222
+
223
+ DEPENDENCIES
224
+ appraisal
225
+ data_migrate!
226
+ overcommit
227
+ pry
228
+ rails (~> 7.0.0)
229
+ rake
230
+ rb-readline
231
+ rspec
232
+ rspec-core
233
+ rubocop
234
+ sqlite3
235
+ timecop
236
+
237
+ BUNDLED WITH
238
+ 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,270 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ data_migrate (11.0.0.rc3)
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-darwin)
141
+ racc (~> 1.4)
142
+ nokogiri (1.16.7-x86_64-linux)
143
+ racc (~> 1.4)
144
+ overcommit (0.60.0)
145
+ childprocess (>= 0.6.3, < 5)
146
+ iniparse (~> 1.4)
147
+ rexml (~> 3.2)
148
+ parallel (1.23.0)
149
+ parser (3.2.2.3)
150
+ ast (~> 2.4.1)
151
+ racc
152
+ pry (0.14.2)
153
+ coderay (~> 1.1)
154
+ method_source (~> 1.0)
155
+ psych (5.1.2)
156
+ stringio
157
+ racc (1.8.1)
158
+ rack (3.1.7)
159
+ rack-session (2.0.0)
160
+ rack (>= 3.0.0)
161
+ rack-test (2.1.0)
162
+ rack (>= 1.3)
163
+ rackup (2.1.0)
164
+ rack (>= 3)
165
+ webrick (~> 1.8)
166
+ rails (7.1.3.4)
167
+ actioncable (= 7.1.3.4)
168
+ actionmailbox (= 7.1.3.4)
169
+ actionmailer (= 7.1.3.4)
170
+ actionpack (= 7.1.3.4)
171
+ actiontext (= 7.1.3.4)
172
+ actionview (= 7.1.3.4)
173
+ activejob (= 7.1.3.4)
174
+ activemodel (= 7.1.3.4)
175
+ activerecord (= 7.1.3.4)
176
+ activestorage (= 7.1.3.4)
177
+ activesupport (= 7.1.3.4)
178
+ bundler (>= 1.15.0)
179
+ railties (= 7.1.3.4)
180
+ rails-dom-testing (2.2.0)
181
+ activesupport (>= 5.0.0)
182
+ minitest
183
+ nokogiri (>= 1.6)
184
+ rails-html-sanitizer (1.6.0)
185
+ loofah (~> 2.21)
186
+ nokogiri (~> 1.14)
187
+ railties (7.1.3.4)
188
+ actionpack (= 7.1.3.4)
189
+ activesupport (= 7.1.3.4)
190
+ irb
191
+ rackup (>= 1.0.0)
192
+ rake (>= 12.2)
193
+ thor (~> 1.0, >= 1.2.2)
194
+ zeitwerk (~> 2.6)
195
+ rainbow (3.1.1)
196
+ rake (13.2.1)
197
+ rb-readline (0.5.5)
198
+ rdoc (6.7.0)
199
+ psych (>= 4.0.0)
200
+ regexp_parser (2.8.1)
201
+ reline (0.5.9)
202
+ io-console (~> 0.5)
203
+ rexml (3.2.5)
204
+ rspec (3.12.0)
205
+ rspec-core (~> 3.12.0)
206
+ rspec-expectations (~> 3.12.0)
207
+ rspec-mocks (~> 3.12.0)
208
+ rspec-core (3.12.2)
209
+ rspec-support (~> 3.12.0)
210
+ rspec-expectations (3.12.3)
211
+ diff-lcs (>= 1.2.0, < 2.0)
212
+ rspec-support (~> 3.12.0)
213
+ rspec-mocks (3.12.6)
214
+ diff-lcs (>= 1.2.0, < 2.0)
215
+ rspec-support (~> 3.12.0)
216
+ rspec-support (3.12.1)
217
+ rubocop (1.54.2)
218
+ json (~> 2.3)
219
+ language_server-protocol (>= 3.17.0)
220
+ parallel (~> 1.10)
221
+ parser (>= 3.2.2.3)
222
+ rainbow (>= 2.2.2, < 4.0)
223
+ regexp_parser (>= 1.8, < 3.0)
224
+ rexml (>= 3.2.5, < 4.0)
225
+ rubocop-ast (>= 1.28.0, < 2.0)
226
+ ruby-progressbar (~> 1.7)
227
+ unicode-display_width (>= 2.4.0, < 3.0)
228
+ rubocop-ast (1.29.0)
229
+ parser (>= 3.2.1.0)
230
+ ruby-progressbar (1.13.0)
231
+ sqlite3 (1.7.2-aarch64-linux)
232
+ sqlite3 (1.7.2-arm64-darwin)
233
+ sqlite3 (1.7.2-x86_64-darwin)
234
+ sqlite3 (1.7.2-x86_64-linux)
235
+ stringio (3.1.1)
236
+ thor (1.3.1)
237
+ timecop (0.9.6)
238
+ timeout (0.4.1)
239
+ tzinfo (2.0.6)
240
+ concurrent-ruby (~> 1.0)
241
+ unicode-display_width (2.4.2)
242
+ webrick (1.8.1)
243
+ websocket-driver (0.7.6)
244
+ websocket-extensions (>= 0.1.0)
245
+ websocket-extensions (0.1.5)
246
+ zeitwerk (2.6.17)
247
+
248
+ PLATFORMS
249
+ aarch64-linux
250
+ arm64-darwin-22
251
+ arm64-darwin-23
252
+ x86_64-darwin-22
253
+ x86_64-linux
254
+
255
+ DEPENDENCIES
256
+ appraisal
257
+ data_migrate!
258
+ overcommit
259
+ pry
260
+ rails (~> 7.1.0)
261
+ rake
262
+ rb-readline
263
+ rspec
264
+ rspec-core
265
+ rubocop
266
+ sqlite3
267
+ timecop
268
+
269
+ BUNDLED WITH
270
+ 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: "../"