ridgepole 0.9.5 → 0.9.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -0
- data/lib/ridgepole/delta.rb +1 -1
- data/lib/ridgepole/version.rb +1 -1
- data/ridgepole.gemspec +5 -2
- metadata +3 -279
- data/.github/workflows/test.yml +0 -70
- data/.gitignore +0 -25
- data/spec/cli_helper.rb +0 -65
- data/spec/dsl_parser/context_spec.rb +0 -16
- data/spec/erb_helper.rb +0 -26
- data/spec/fixtures/for_require_relative_spec.rb +0 -3
- data/spec/hide_pending_formatter.rb +0 -9
- data/spec/mysql/_migrate/migrate_change_table_option_spec.rb +0 -40
- data/spec/mysql/bigint_pk/int_pk_spec.rb +0 -47
- data/spec/mysql/cli/config_spec.rb +0 -210
- data/spec/mysql/cli/ridgepole_spec.rb +0 -447
- data/spec/mysql/collation/collation_spec.rb +0 -153
- data/spec/mysql/comment/comment_spec.rb +0 -179
- data/spec/mysql/default_lambda/default_lambda_spec.rb +0 -164
- data/spec/mysql/diff/diff2_spec.rb +0 -189
- data/spec/mysql/diff/diff_spec.rb +0 -168
- data/spec/mysql/dump/dump_class_method_spec.rb +0 -74
- data/spec/mysql/dump/dump_some_tables_spec.rb +0 -70
- data/spec/mysql/dump/dump_spec.rb +0 -74
- data/spec/mysql/dump/dump_unknown_column_type_spec.rb +0 -28
- data/spec/mysql/dump/dump_without_table_options_spec.rb +0 -34
- data/spec/mysql/fk/migrate_change_fk2_spec.rb +0 -47
- data/spec/mysql/fk/migrate_change_fk_spec.rb +0 -265
- data/spec/mysql/fk/migrate_create_fk_spec.rb +0 -349
- data/spec/mysql/fk/migrate_drop_fk_spec.rb +0 -331
- data/spec/mysql/fk/migrate_fk_with_column_spec.rb +0 -163
- data/spec/mysql/fk/migrate_ignore_fk_spec.rb +0 -70
- data/spec/mysql/migrate/check_orphan_index_spec.rb +0 -83
- data/spec/mysql/migrate/migrate_add_column2_spec.rb +0 -159
- data/spec/mysql/migrate/migrate_add_column_order_spec.rb +0 -242
- data/spec/mysql/migrate/migrate_add_column_spec.rb +0 -161
- data/spec/mysql/migrate/migrate_add_column_with_alter_extra_spec.rb +0 -276
- data/spec/mysql/migrate/migrate_add_column_with_script_spec.rb +0 -152
- data/spec/mysql/migrate/migrate_change_column2_spec.rb +0 -91
- data/spec/mysql/migrate/migrate_change_column3_spec.rb +0 -404
- data/spec/mysql/migrate/migrate_change_column4_spec.rb +0 -83
- data/spec/mysql/migrate/migrate_change_column5_spec.rb +0 -129
- data/spec/mysql/migrate/migrate_change_column6_spec.rb +0 -241
- data/spec/mysql/migrate/migrate_change_column7_spec.rb +0 -34
- data/spec/mysql/migrate/migrate_change_column8_spec.rb +0 -87
- data/spec/mysql/migrate/migrate_change_column_default_spec.rb +0 -199
- data/spec/mysql/migrate/migrate_change_column_float_spec.rb +0 -75
- data/spec/mysql/migrate/migrate_change_column_spec.rb +0 -158
- data/spec/mysql/migrate/migrate_change_index2_spec.rb +0 -86
- data/spec/mysql/migrate/migrate_change_index3_spec.rb +0 -179
- data/spec/mysql/migrate/migrate_change_index4_spec.rb +0 -112
- data/spec/mysql/migrate/migrate_change_index5_spec.rb +0 -74
- data/spec/mysql/migrate/migrate_change_index6_spec.rb +0 -202
- data/spec/mysql/migrate/migrate_change_index7_spec.rb +0 -85
- data/spec/mysql/migrate/migrate_change_index8_spec.rb +0 -85
- data/spec/mysql/migrate/migrate_change_index_spec.rb +0 -235
- data/spec/mysql/migrate/migrate_change_table_comment_spec.rb +0 -72
- data/spec/mysql/migrate/migrate_change_table_option_spec.rb +0 -83
- data/spec/mysql/migrate/migrate_check_relation_column_type_spec.rb +0 -225
- data/spec/mysql/migrate/migrate_create_index2_spec.rb +0 -203
- data/spec/mysql/migrate/migrate_create_index_spec.rb +0 -220
- data/spec/mysql/migrate/migrate_create_table_spec.rb +0 -123
- data/spec/mysql/migrate/migrate_create_table_with_ignore_spec.rb +0 -45
- data/spec/mysql/migrate/migrate_create_table_with_index_spec.rb +0 -43
- data/spec/mysql/migrate/migrate_create_table_with_options_spec.rb +0 -59
- data/spec/mysql/migrate/migrate_create_table_with_script_spec.rb +0 -132
- data/spec/mysql/migrate/migrate_drop_column_and_index2_spec.rb +0 -140
- data/spec/mysql/migrate/migrate_drop_column_and_index_spec.rb +0 -167
- data/spec/mysql/migrate/migrate_drop_column_and_unique_index_spec.rb +0 -52
- data/spec/mysql/migrate/migrate_drop_column_spec.rb +0 -158
- data/spec/mysql/migrate/migrate_drop_index_spec.rb +0 -160
- data/spec/mysql/migrate/migrate_drop_table_spec.rb +0 -123
- data/spec/mysql/migrate/migrate_duplicate_index_spec.rb +0 -27
- data/spec/mysql/migrate/migrate_duplicate_table_spec.rb +0 -37
- data/spec/mysql/migrate/migrate_empty_spec.rb +0 -78
- data/spec/mysql/migrate/migrate_execute_spec.rb +0 -288
- data/spec/mysql/migrate/migrate_ignore_column_spec.rb +0 -98
- data/spec/mysql/migrate/migrate_ignore_index_spec.rb +0 -92
- data/spec/mysql/migrate/migrate_log_file_spec.rb +0 -125
- data/spec/mysql/migrate/migrate_merge_mode_spec.rb +0 -145
- data/spec/mysql/migrate/migrate_noop_spec.rb +0 -234
- data/spec/mysql/migrate/migrate_primary_key_spec.rb +0 -104
- data/spec/mysql/migrate/migrate_rename_column_spec.rb +0 -184
- data/spec/mysql/migrate/migrate_rename_table_spec.rb +0 -241
- data/spec/mysql/migrate/migrate_same_default_null_spec.rb +0 -77
- data/spec/mysql/migrate/migrate_same_spec.rb +0 -82
- data/spec/mysql/migrate/migrate_script_error_spec.rb +0 -91
- data/spec/mysql/migrate/migrate_skip_column_comment_change_spec.rb +0 -39
- data/spec/mysql/migrate/migrate_skip_drop_table_spec.rb +0 -145
- data/spec/mysql/migrate/migrate_skip_rename_column_spec.rb +0 -140
- data/spec/mysql/migrate/migrate_skip_rename_table_spec.rb +0 -141
- data/spec/mysql/migrate/migrate_with_ignore_tables_spec.rb +0 -307
- data/spec/mysql/migrate/migrate_with_pre_post_query_spec.rb +0 -153
- data/spec/mysql/migrate/migrate_with_tables_spec.rb +0 -149
- data/spec/mysql/migrate/migrate_with_verbose_log_spec.rb +0 -60
- data/spec/mysql/ridgepole_test_database.sql +0 -2
- data/spec/mysql/ridgepole_test_tables.sql +0 -79
- data/spec/mysql/ridgepole_test_tables_unknown_column_type.sql +0 -17
- data/spec/mysql/text_blob_types/text_blob_types_spec.rb +0 -131
- data/spec/mysql/~default_name_fk/migrate_change_fk_spec.rb +0 -59
- data/spec/mysql/~default_name_fk/migrate_create_fk_spec.rb +0 -133
- data/spec/mysql/~default_name_fk/migrate_drop_fk_spec.rb +0 -100
- data/spec/mysql/~dump_auto_increment/migrate_create_table_with_index_spec.rb +0 -43
- data/spec/mysql57/json/add_json_column_spec.rb +0 -35
- data/spec/mysql57/json/change_json_column_spec.rb +0 -102
- data/spec/mysql57/json/drop_json_column_spec.rb +0 -35
- data/spec/mysql57/virtual/add_virtual_column_spec.rb +0 -37
- data/spec/mysql57/virtual/change_virtual_column_spec.rb +0 -40
- data/spec/mysql57/virtual/drop_virtual_column_spec.rb +0 -37
- data/spec/postgresql/diff/diff_spec.rb +0 -216
- data/spec/postgresql/dump/dump_spec.rb +0 -69
- data/spec/postgresql/fk/migrate_change_fk_spec.rb +0 -115
- data/spec/postgresql/fk/migrate_create_fk_spec.rb +0 -176
- data/spec/postgresql/fk/migrate_drop_fk_spec.rb +0 -197
- data/spec/postgresql/migrate/migrate_add_column_spec.rb +0 -203
- data/spec/postgresql/migrate/migrate_add_expression_index_spec.rb +0 -25
- data/spec/postgresql/migrate/migrate_bigint_spec.rb +0 -53
- data/spec/postgresql/migrate/migrate_change_column_default_spec.rb +0 -38
- data/spec/postgresql/migrate/migrate_change_column_spec.rb +0 -185
- data/spec/postgresql/migrate/migrate_change_index_spec.rb +0 -164
- data/spec/postgresql/migrate/migrate_check_relation_column_type_spec.rb +0 -114
- data/spec/postgresql/migrate/migrate_create_table_spec.rb +0 -120
- data/spec/postgresql/migrate/migrate_create_table_with_default_proc_spec.rb +0 -112
- data/spec/postgresql/migrate/migrate_drop_column_spec.rb +0 -163
- data/spec/postgresql/migrate/migrate_drop_column_with_index_spec.rb +0 -166
- data/spec/postgresql/migrate/migrate_drop_expression_index_spec.rb +0 -59
- data/spec/postgresql/migrate/migrate_drop_index_spec.rb +0 -158
- data/spec/postgresql/migrate/migrate_drop_table_spec.rb +0 -122
- data/spec/postgresql/migrate/migrate_ext_cols_spec.rb +0 -64
- data/spec/postgresql/migrate/migrate_primary_key2_spec.rb +0 -73
- data/spec/postgresql/migrate/migrate_primary_key_spec.rb +0 -99
- data/spec/postgresql/migrate/migrate_references_spec.rb +0 -90
- data/spec/postgresql/migrate/migrate_rename_column_spec.rb +0 -155
- data/spec/postgresql/migrate/migrate_rename_table_spec.rb +0 -175
- data/spec/postgresql/migrate/migrate_same_spec.rb +0 -77
- data/spec/postgresql/ridgepole_test_database.sql +0 -16
- data/spec/postgresql/ridgepole_test_tables.sql +0 -75
- data/spec/postgresql/~default_name_fk/migrate_change_fk_spec.rb +0 -59
- data/spec/postgresql/~default_name_fk/migrate_create_fk_spec.rb +0 -134
- data/spec/postgresql/~default_name_fk/migrate_drop_fk_spec.rb +0 -100
- data/spec/processing_for_ci.rb +0 -13
- data/spec/spec_condition.rb +0 -58
- data/spec/spec_const.rb +0 -20
- data/spec/spec_helper.rb +0 -173
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 31e0a751b0aa205f5286981c6003da0458d36f71b5120d891fe80cd2ebee5d40
|
4
|
+
data.tar.gz: fb792c794a4f0460ff29a554fad353cae140f94e2d31517ad552799b87789b78
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bbe71e379ee8e5e794118d7844a61b294ac05eb7d85894eeebc1b15314f55937c32ff13e7795d839ef7ea5eb5cb8aa281bfec0320d9f0f77d3c944c46bc3a75e
|
7
|
+
data.tar.gz: b6dd23c3d01152d5d1e06d5a8fe75f7463bcc92d33f41c389d41d0344f691219ccb17cd21928980191abadd22bf69679e8a75802d8582b6375b755e6c49ac9c7
|
data/README.md
CHANGED
@@ -145,6 +145,8 @@ It defines DB schema using [Rails DSL](http://guides.rubyonrails.org/migrations.
|
|
145
145
|
* Fix `--alter-extra` option for unique index ([pull#356](https://github.com/winebarrel/ridgepole/pull/356))
|
146
146
|
* `>= 0.9.5`
|
147
147
|
* Call `super` in `disable_table_options.rb` ([pull#357](https://github.com/winebarrel/ridgepole/pull/357))
|
148
|
+
* `>= 0.9.6`
|
149
|
+
* Fix malformed error ([pull#362](https://github.com/winebarrel/ridgepole/pull/362))
|
148
150
|
</details>
|
149
151
|
|
150
152
|
**Notice**
|
data/lib/ridgepole/delta.rb
CHANGED
@@ -191,7 +191,7 @@ module Ridgepole
|
|
191
191
|
errmsg = lines.with_index.map do |l, i|
|
192
192
|
line_num = i + 1
|
193
193
|
prefix = line_num == err_num ? '* ' : ' '
|
194
|
-
format("#{prefix}%<line_num>#{digit_number}d:
|
194
|
+
format("#{prefix}%<line_num>#{digit_number}d: %<line>s", line_num: line_num, line: l)
|
195
195
|
end
|
196
196
|
|
197
197
|
if err_num > 0
|
data/lib/ridgepole/version.rb
CHANGED
data/ridgepole.gemspec
CHANGED
@@ -14,9 +14,12 @@ Gem::Specification.new do |spec|
|
|
14
14
|
spec.homepage = 'https://github.com/ridgepole/ridgepole'
|
15
15
|
spec.license = 'MIT'
|
16
16
|
|
17
|
-
spec.files
|
17
|
+
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
18
|
+
`git ls-files -z`.split("\x0").reject do |f|
|
19
|
+
f.match(%r{\A(?:(?:test|spec|features)/|\.(?:git|travis|circleci)|appveyor)})
|
20
|
+
end
|
21
|
+
end
|
18
22
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
19
|
-
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
20
23
|
spec.require_paths = ['lib']
|
21
24
|
|
22
25
|
spec.required_ruby_version = Gem::Requirement.new('>= 2.2.7') # rubocop:disable Gemspec/RequiredRubyVersion
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ridgepole
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Genki Sugawara
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-08-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -277,8 +277,6 @@ executables:
|
|
277
277
|
extensions: []
|
278
278
|
extra_rdoc_files: []
|
279
279
|
files:
|
280
|
-
- ".github/workflows/test.yml"
|
281
|
-
- ".gitignore"
|
282
280
|
- ".rspec"
|
283
281
|
- ".rubocop.yml"
|
284
282
|
- ".simplecov"
|
@@ -316,143 +314,6 @@ files:
|
|
316
314
|
- lib/ridgepole/schema_statements_ext.rb
|
317
315
|
- lib/ridgepole/version.rb
|
318
316
|
- ridgepole.gemspec
|
319
|
-
- spec/cli_helper.rb
|
320
|
-
- spec/dsl_parser/context_spec.rb
|
321
|
-
- spec/erb_helper.rb
|
322
|
-
- spec/fixtures/for_require_relative_spec.rb
|
323
|
-
- spec/hide_pending_formatter.rb
|
324
|
-
- spec/mysql/_migrate/migrate_change_table_option_spec.rb
|
325
|
-
- spec/mysql/bigint_pk/int_pk_spec.rb
|
326
|
-
- spec/mysql/cli/config_spec.rb
|
327
|
-
- spec/mysql/cli/ridgepole_spec.rb
|
328
|
-
- spec/mysql/collation/collation_spec.rb
|
329
|
-
- spec/mysql/comment/comment_spec.rb
|
330
|
-
- spec/mysql/default_lambda/default_lambda_spec.rb
|
331
|
-
- spec/mysql/diff/diff2_spec.rb
|
332
|
-
- spec/mysql/diff/diff_spec.rb
|
333
|
-
- spec/mysql/dump/dump_class_method_spec.rb
|
334
|
-
- spec/mysql/dump/dump_some_tables_spec.rb
|
335
|
-
- spec/mysql/dump/dump_spec.rb
|
336
|
-
- spec/mysql/dump/dump_unknown_column_type_spec.rb
|
337
|
-
- spec/mysql/dump/dump_without_table_options_spec.rb
|
338
|
-
- spec/mysql/fk/migrate_change_fk2_spec.rb
|
339
|
-
- spec/mysql/fk/migrate_change_fk_spec.rb
|
340
|
-
- spec/mysql/fk/migrate_create_fk_spec.rb
|
341
|
-
- spec/mysql/fk/migrate_drop_fk_spec.rb
|
342
|
-
- spec/mysql/fk/migrate_fk_with_column_spec.rb
|
343
|
-
- spec/mysql/fk/migrate_ignore_fk_spec.rb
|
344
|
-
- spec/mysql/migrate/check_orphan_index_spec.rb
|
345
|
-
- spec/mysql/migrate/migrate_add_column2_spec.rb
|
346
|
-
- spec/mysql/migrate/migrate_add_column_order_spec.rb
|
347
|
-
- spec/mysql/migrate/migrate_add_column_spec.rb
|
348
|
-
- spec/mysql/migrate/migrate_add_column_with_alter_extra_spec.rb
|
349
|
-
- spec/mysql/migrate/migrate_add_column_with_script_spec.rb
|
350
|
-
- spec/mysql/migrate/migrate_change_column2_spec.rb
|
351
|
-
- spec/mysql/migrate/migrate_change_column3_spec.rb
|
352
|
-
- spec/mysql/migrate/migrate_change_column4_spec.rb
|
353
|
-
- spec/mysql/migrate/migrate_change_column5_spec.rb
|
354
|
-
- spec/mysql/migrate/migrate_change_column6_spec.rb
|
355
|
-
- spec/mysql/migrate/migrate_change_column7_spec.rb
|
356
|
-
- spec/mysql/migrate/migrate_change_column8_spec.rb
|
357
|
-
- spec/mysql/migrate/migrate_change_column_default_spec.rb
|
358
|
-
- spec/mysql/migrate/migrate_change_column_float_spec.rb
|
359
|
-
- spec/mysql/migrate/migrate_change_column_spec.rb
|
360
|
-
- spec/mysql/migrate/migrate_change_index2_spec.rb
|
361
|
-
- spec/mysql/migrate/migrate_change_index3_spec.rb
|
362
|
-
- spec/mysql/migrate/migrate_change_index4_spec.rb
|
363
|
-
- spec/mysql/migrate/migrate_change_index5_spec.rb
|
364
|
-
- spec/mysql/migrate/migrate_change_index6_spec.rb
|
365
|
-
- spec/mysql/migrate/migrate_change_index7_spec.rb
|
366
|
-
- spec/mysql/migrate/migrate_change_index8_spec.rb
|
367
|
-
- spec/mysql/migrate/migrate_change_index_spec.rb
|
368
|
-
- spec/mysql/migrate/migrate_change_table_comment_spec.rb
|
369
|
-
- spec/mysql/migrate/migrate_change_table_option_spec.rb
|
370
|
-
- spec/mysql/migrate/migrate_check_relation_column_type_spec.rb
|
371
|
-
- spec/mysql/migrate/migrate_create_index2_spec.rb
|
372
|
-
- spec/mysql/migrate/migrate_create_index_spec.rb
|
373
|
-
- spec/mysql/migrate/migrate_create_table_spec.rb
|
374
|
-
- spec/mysql/migrate/migrate_create_table_with_ignore_spec.rb
|
375
|
-
- spec/mysql/migrate/migrate_create_table_with_index_spec.rb
|
376
|
-
- spec/mysql/migrate/migrate_create_table_with_options_spec.rb
|
377
|
-
- spec/mysql/migrate/migrate_create_table_with_script_spec.rb
|
378
|
-
- spec/mysql/migrate/migrate_drop_column_and_index2_spec.rb
|
379
|
-
- spec/mysql/migrate/migrate_drop_column_and_index_spec.rb
|
380
|
-
- spec/mysql/migrate/migrate_drop_column_and_unique_index_spec.rb
|
381
|
-
- spec/mysql/migrate/migrate_drop_column_spec.rb
|
382
|
-
- spec/mysql/migrate/migrate_drop_index_spec.rb
|
383
|
-
- spec/mysql/migrate/migrate_drop_table_spec.rb
|
384
|
-
- spec/mysql/migrate/migrate_duplicate_index_spec.rb
|
385
|
-
- spec/mysql/migrate/migrate_duplicate_table_spec.rb
|
386
|
-
- spec/mysql/migrate/migrate_empty_spec.rb
|
387
|
-
- spec/mysql/migrate/migrate_execute_spec.rb
|
388
|
-
- spec/mysql/migrate/migrate_ignore_column_spec.rb
|
389
|
-
- spec/mysql/migrate/migrate_ignore_index_spec.rb
|
390
|
-
- spec/mysql/migrate/migrate_log_file_spec.rb
|
391
|
-
- spec/mysql/migrate/migrate_merge_mode_spec.rb
|
392
|
-
- spec/mysql/migrate/migrate_noop_spec.rb
|
393
|
-
- spec/mysql/migrate/migrate_primary_key_spec.rb
|
394
|
-
- spec/mysql/migrate/migrate_rename_column_spec.rb
|
395
|
-
- spec/mysql/migrate/migrate_rename_table_spec.rb
|
396
|
-
- spec/mysql/migrate/migrate_same_default_null_spec.rb
|
397
|
-
- spec/mysql/migrate/migrate_same_spec.rb
|
398
|
-
- spec/mysql/migrate/migrate_script_error_spec.rb
|
399
|
-
- spec/mysql/migrate/migrate_skip_column_comment_change_spec.rb
|
400
|
-
- spec/mysql/migrate/migrate_skip_drop_table_spec.rb
|
401
|
-
- spec/mysql/migrate/migrate_skip_rename_column_spec.rb
|
402
|
-
- spec/mysql/migrate/migrate_skip_rename_table_spec.rb
|
403
|
-
- spec/mysql/migrate/migrate_with_ignore_tables_spec.rb
|
404
|
-
- spec/mysql/migrate/migrate_with_pre_post_query_spec.rb
|
405
|
-
- spec/mysql/migrate/migrate_with_tables_spec.rb
|
406
|
-
- spec/mysql/migrate/migrate_with_verbose_log_spec.rb
|
407
|
-
- spec/mysql/ridgepole_test_database.sql
|
408
|
-
- spec/mysql/ridgepole_test_tables.sql
|
409
|
-
- spec/mysql/ridgepole_test_tables_unknown_column_type.sql
|
410
|
-
- spec/mysql/text_blob_types/text_blob_types_spec.rb
|
411
|
-
- spec/mysql/~default_name_fk/migrate_change_fk_spec.rb
|
412
|
-
- spec/mysql/~default_name_fk/migrate_create_fk_spec.rb
|
413
|
-
- spec/mysql/~default_name_fk/migrate_drop_fk_spec.rb
|
414
|
-
- spec/mysql/~dump_auto_increment/migrate_create_table_with_index_spec.rb
|
415
|
-
- spec/mysql57/json/add_json_column_spec.rb
|
416
|
-
- spec/mysql57/json/change_json_column_spec.rb
|
417
|
-
- spec/mysql57/json/drop_json_column_spec.rb
|
418
|
-
- spec/mysql57/virtual/add_virtual_column_spec.rb
|
419
|
-
- spec/mysql57/virtual/change_virtual_column_spec.rb
|
420
|
-
- spec/mysql57/virtual/drop_virtual_column_spec.rb
|
421
|
-
- spec/postgresql/diff/diff_spec.rb
|
422
|
-
- spec/postgresql/dump/dump_spec.rb
|
423
|
-
- spec/postgresql/fk/migrate_change_fk_spec.rb
|
424
|
-
- spec/postgresql/fk/migrate_create_fk_spec.rb
|
425
|
-
- spec/postgresql/fk/migrate_drop_fk_spec.rb
|
426
|
-
- spec/postgresql/migrate/migrate_add_column_spec.rb
|
427
|
-
- spec/postgresql/migrate/migrate_add_expression_index_spec.rb
|
428
|
-
- spec/postgresql/migrate/migrate_bigint_spec.rb
|
429
|
-
- spec/postgresql/migrate/migrate_change_column_default_spec.rb
|
430
|
-
- spec/postgresql/migrate/migrate_change_column_spec.rb
|
431
|
-
- spec/postgresql/migrate/migrate_change_index_spec.rb
|
432
|
-
- spec/postgresql/migrate/migrate_check_relation_column_type_spec.rb
|
433
|
-
- spec/postgresql/migrate/migrate_create_table_spec.rb
|
434
|
-
- spec/postgresql/migrate/migrate_create_table_with_default_proc_spec.rb
|
435
|
-
- spec/postgresql/migrate/migrate_drop_column_spec.rb
|
436
|
-
- spec/postgresql/migrate/migrate_drop_column_with_index_spec.rb
|
437
|
-
- spec/postgresql/migrate/migrate_drop_expression_index_spec.rb
|
438
|
-
- spec/postgresql/migrate/migrate_drop_index_spec.rb
|
439
|
-
- spec/postgresql/migrate/migrate_drop_table_spec.rb
|
440
|
-
- spec/postgresql/migrate/migrate_ext_cols_spec.rb
|
441
|
-
- spec/postgresql/migrate/migrate_primary_key2_spec.rb
|
442
|
-
- spec/postgresql/migrate/migrate_primary_key_spec.rb
|
443
|
-
- spec/postgresql/migrate/migrate_references_spec.rb
|
444
|
-
- spec/postgresql/migrate/migrate_rename_column_spec.rb
|
445
|
-
- spec/postgresql/migrate/migrate_rename_table_spec.rb
|
446
|
-
- spec/postgresql/migrate/migrate_same_spec.rb
|
447
|
-
- spec/postgresql/ridgepole_test_database.sql
|
448
|
-
- spec/postgresql/ridgepole_test_tables.sql
|
449
|
-
- spec/postgresql/~default_name_fk/migrate_change_fk_spec.rb
|
450
|
-
- spec/postgresql/~default_name_fk/migrate_create_fk_spec.rb
|
451
|
-
- spec/postgresql/~default_name_fk/migrate_drop_fk_spec.rb
|
452
|
-
- spec/processing_for_ci.rb
|
453
|
-
- spec/spec_condition.rb
|
454
|
-
- spec/spec_const.rb
|
455
|
-
- spec/spec_helper.rb
|
456
317
|
homepage: https://github.com/ridgepole/ridgepole
|
457
318
|
licenses:
|
458
319
|
- MIT
|
@@ -476,141 +337,4 @@ rubygems_version: 3.1.6
|
|
476
337
|
signing_key:
|
477
338
|
specification_version: 4
|
478
339
|
summary: Ridgepole is a tool to manage DB schema.
|
479
|
-
test_files:
|
480
|
-
- spec/cli_helper.rb
|
481
|
-
- spec/dsl_parser/context_spec.rb
|
482
|
-
- spec/erb_helper.rb
|
483
|
-
- spec/fixtures/for_require_relative_spec.rb
|
484
|
-
- spec/hide_pending_formatter.rb
|
485
|
-
- spec/mysql/_migrate/migrate_change_table_option_spec.rb
|
486
|
-
- spec/mysql/bigint_pk/int_pk_spec.rb
|
487
|
-
- spec/mysql/cli/config_spec.rb
|
488
|
-
- spec/mysql/cli/ridgepole_spec.rb
|
489
|
-
- spec/mysql/collation/collation_spec.rb
|
490
|
-
- spec/mysql/comment/comment_spec.rb
|
491
|
-
- spec/mysql/default_lambda/default_lambda_spec.rb
|
492
|
-
- spec/mysql/diff/diff2_spec.rb
|
493
|
-
- spec/mysql/diff/diff_spec.rb
|
494
|
-
- spec/mysql/dump/dump_class_method_spec.rb
|
495
|
-
- spec/mysql/dump/dump_some_tables_spec.rb
|
496
|
-
- spec/mysql/dump/dump_spec.rb
|
497
|
-
- spec/mysql/dump/dump_unknown_column_type_spec.rb
|
498
|
-
- spec/mysql/dump/dump_without_table_options_spec.rb
|
499
|
-
- spec/mysql/fk/migrate_change_fk2_spec.rb
|
500
|
-
- spec/mysql/fk/migrate_change_fk_spec.rb
|
501
|
-
- spec/mysql/fk/migrate_create_fk_spec.rb
|
502
|
-
- spec/mysql/fk/migrate_drop_fk_spec.rb
|
503
|
-
- spec/mysql/fk/migrate_fk_with_column_spec.rb
|
504
|
-
- spec/mysql/fk/migrate_ignore_fk_spec.rb
|
505
|
-
- spec/mysql/migrate/check_orphan_index_spec.rb
|
506
|
-
- spec/mysql/migrate/migrate_add_column2_spec.rb
|
507
|
-
- spec/mysql/migrate/migrate_add_column_order_spec.rb
|
508
|
-
- spec/mysql/migrate/migrate_add_column_spec.rb
|
509
|
-
- spec/mysql/migrate/migrate_add_column_with_alter_extra_spec.rb
|
510
|
-
- spec/mysql/migrate/migrate_add_column_with_script_spec.rb
|
511
|
-
- spec/mysql/migrate/migrate_change_column2_spec.rb
|
512
|
-
- spec/mysql/migrate/migrate_change_column3_spec.rb
|
513
|
-
- spec/mysql/migrate/migrate_change_column4_spec.rb
|
514
|
-
- spec/mysql/migrate/migrate_change_column5_spec.rb
|
515
|
-
- spec/mysql/migrate/migrate_change_column6_spec.rb
|
516
|
-
- spec/mysql/migrate/migrate_change_column7_spec.rb
|
517
|
-
- spec/mysql/migrate/migrate_change_column8_spec.rb
|
518
|
-
- spec/mysql/migrate/migrate_change_column_default_spec.rb
|
519
|
-
- spec/mysql/migrate/migrate_change_column_float_spec.rb
|
520
|
-
- spec/mysql/migrate/migrate_change_column_spec.rb
|
521
|
-
- spec/mysql/migrate/migrate_change_index2_spec.rb
|
522
|
-
- spec/mysql/migrate/migrate_change_index3_spec.rb
|
523
|
-
- spec/mysql/migrate/migrate_change_index4_spec.rb
|
524
|
-
- spec/mysql/migrate/migrate_change_index5_spec.rb
|
525
|
-
- spec/mysql/migrate/migrate_change_index6_spec.rb
|
526
|
-
- spec/mysql/migrate/migrate_change_index7_spec.rb
|
527
|
-
- spec/mysql/migrate/migrate_change_index8_spec.rb
|
528
|
-
- spec/mysql/migrate/migrate_change_index_spec.rb
|
529
|
-
- spec/mysql/migrate/migrate_change_table_comment_spec.rb
|
530
|
-
- spec/mysql/migrate/migrate_change_table_option_spec.rb
|
531
|
-
- spec/mysql/migrate/migrate_check_relation_column_type_spec.rb
|
532
|
-
- spec/mysql/migrate/migrate_create_index2_spec.rb
|
533
|
-
- spec/mysql/migrate/migrate_create_index_spec.rb
|
534
|
-
- spec/mysql/migrate/migrate_create_table_spec.rb
|
535
|
-
- spec/mysql/migrate/migrate_create_table_with_ignore_spec.rb
|
536
|
-
- spec/mysql/migrate/migrate_create_table_with_index_spec.rb
|
537
|
-
- spec/mysql/migrate/migrate_create_table_with_options_spec.rb
|
538
|
-
- spec/mysql/migrate/migrate_create_table_with_script_spec.rb
|
539
|
-
- spec/mysql/migrate/migrate_drop_column_and_index2_spec.rb
|
540
|
-
- spec/mysql/migrate/migrate_drop_column_and_index_spec.rb
|
541
|
-
- spec/mysql/migrate/migrate_drop_column_and_unique_index_spec.rb
|
542
|
-
- spec/mysql/migrate/migrate_drop_column_spec.rb
|
543
|
-
- spec/mysql/migrate/migrate_drop_index_spec.rb
|
544
|
-
- spec/mysql/migrate/migrate_drop_table_spec.rb
|
545
|
-
- spec/mysql/migrate/migrate_duplicate_index_spec.rb
|
546
|
-
- spec/mysql/migrate/migrate_duplicate_table_spec.rb
|
547
|
-
- spec/mysql/migrate/migrate_empty_spec.rb
|
548
|
-
- spec/mysql/migrate/migrate_execute_spec.rb
|
549
|
-
- spec/mysql/migrate/migrate_ignore_column_spec.rb
|
550
|
-
- spec/mysql/migrate/migrate_ignore_index_spec.rb
|
551
|
-
- spec/mysql/migrate/migrate_log_file_spec.rb
|
552
|
-
- spec/mysql/migrate/migrate_merge_mode_spec.rb
|
553
|
-
- spec/mysql/migrate/migrate_noop_spec.rb
|
554
|
-
- spec/mysql/migrate/migrate_primary_key_spec.rb
|
555
|
-
- spec/mysql/migrate/migrate_rename_column_spec.rb
|
556
|
-
- spec/mysql/migrate/migrate_rename_table_spec.rb
|
557
|
-
- spec/mysql/migrate/migrate_same_default_null_spec.rb
|
558
|
-
- spec/mysql/migrate/migrate_same_spec.rb
|
559
|
-
- spec/mysql/migrate/migrate_script_error_spec.rb
|
560
|
-
- spec/mysql/migrate/migrate_skip_column_comment_change_spec.rb
|
561
|
-
- spec/mysql/migrate/migrate_skip_drop_table_spec.rb
|
562
|
-
- spec/mysql/migrate/migrate_skip_rename_column_spec.rb
|
563
|
-
- spec/mysql/migrate/migrate_skip_rename_table_spec.rb
|
564
|
-
- spec/mysql/migrate/migrate_with_ignore_tables_spec.rb
|
565
|
-
- spec/mysql/migrate/migrate_with_pre_post_query_spec.rb
|
566
|
-
- spec/mysql/migrate/migrate_with_tables_spec.rb
|
567
|
-
- spec/mysql/migrate/migrate_with_verbose_log_spec.rb
|
568
|
-
- spec/mysql/ridgepole_test_database.sql
|
569
|
-
- spec/mysql/ridgepole_test_tables.sql
|
570
|
-
- spec/mysql/ridgepole_test_tables_unknown_column_type.sql
|
571
|
-
- spec/mysql/text_blob_types/text_blob_types_spec.rb
|
572
|
-
- spec/mysql/~default_name_fk/migrate_change_fk_spec.rb
|
573
|
-
- spec/mysql/~default_name_fk/migrate_create_fk_spec.rb
|
574
|
-
- spec/mysql/~default_name_fk/migrate_drop_fk_spec.rb
|
575
|
-
- spec/mysql/~dump_auto_increment/migrate_create_table_with_index_spec.rb
|
576
|
-
- spec/mysql57/json/add_json_column_spec.rb
|
577
|
-
- spec/mysql57/json/change_json_column_spec.rb
|
578
|
-
- spec/mysql57/json/drop_json_column_spec.rb
|
579
|
-
- spec/mysql57/virtual/add_virtual_column_spec.rb
|
580
|
-
- spec/mysql57/virtual/change_virtual_column_spec.rb
|
581
|
-
- spec/mysql57/virtual/drop_virtual_column_spec.rb
|
582
|
-
- spec/postgresql/diff/diff_spec.rb
|
583
|
-
- spec/postgresql/dump/dump_spec.rb
|
584
|
-
- spec/postgresql/fk/migrate_change_fk_spec.rb
|
585
|
-
- spec/postgresql/fk/migrate_create_fk_spec.rb
|
586
|
-
- spec/postgresql/fk/migrate_drop_fk_spec.rb
|
587
|
-
- spec/postgresql/migrate/migrate_add_column_spec.rb
|
588
|
-
- spec/postgresql/migrate/migrate_add_expression_index_spec.rb
|
589
|
-
- spec/postgresql/migrate/migrate_bigint_spec.rb
|
590
|
-
- spec/postgresql/migrate/migrate_change_column_default_spec.rb
|
591
|
-
- spec/postgresql/migrate/migrate_change_column_spec.rb
|
592
|
-
- spec/postgresql/migrate/migrate_change_index_spec.rb
|
593
|
-
- spec/postgresql/migrate/migrate_check_relation_column_type_spec.rb
|
594
|
-
- spec/postgresql/migrate/migrate_create_table_spec.rb
|
595
|
-
- spec/postgresql/migrate/migrate_create_table_with_default_proc_spec.rb
|
596
|
-
- spec/postgresql/migrate/migrate_drop_column_spec.rb
|
597
|
-
- spec/postgresql/migrate/migrate_drop_column_with_index_spec.rb
|
598
|
-
- spec/postgresql/migrate/migrate_drop_expression_index_spec.rb
|
599
|
-
- spec/postgresql/migrate/migrate_drop_index_spec.rb
|
600
|
-
- spec/postgresql/migrate/migrate_drop_table_spec.rb
|
601
|
-
- spec/postgresql/migrate/migrate_ext_cols_spec.rb
|
602
|
-
- spec/postgresql/migrate/migrate_primary_key2_spec.rb
|
603
|
-
- spec/postgresql/migrate/migrate_primary_key_spec.rb
|
604
|
-
- spec/postgresql/migrate/migrate_references_spec.rb
|
605
|
-
- spec/postgresql/migrate/migrate_rename_column_spec.rb
|
606
|
-
- spec/postgresql/migrate/migrate_rename_table_spec.rb
|
607
|
-
- spec/postgresql/migrate/migrate_same_spec.rb
|
608
|
-
- spec/postgresql/ridgepole_test_database.sql
|
609
|
-
- spec/postgresql/ridgepole_test_tables.sql
|
610
|
-
- spec/postgresql/~default_name_fk/migrate_change_fk_spec.rb
|
611
|
-
- spec/postgresql/~default_name_fk/migrate_create_fk_spec.rb
|
612
|
-
- spec/postgresql/~default_name_fk/migrate_drop_fk_spec.rb
|
613
|
-
- spec/processing_for_ci.rb
|
614
|
-
- spec/spec_condition.rb
|
615
|
-
- spec/spec_const.rb
|
616
|
-
- spec/spec_helper.rb
|
340
|
+
test_files: []
|
data/.github/workflows/test.yml
DELETED
@@ -1,70 +0,0 @@
|
|
1
|
-
name: test
|
2
|
-
|
3
|
-
on:
|
4
|
-
push:
|
5
|
-
pull_request:
|
6
|
-
|
7
|
-
jobs:
|
8
|
-
build:
|
9
|
-
runs-on: ubuntu-latest
|
10
|
-
strategy:
|
11
|
-
fail-fast: false
|
12
|
-
matrix:
|
13
|
-
ruby:
|
14
|
-
- 2.4
|
15
|
-
- 2.5
|
16
|
-
- 2.6
|
17
|
-
- 2.7
|
18
|
-
env:
|
19
|
-
- MYSQL56=1
|
20
|
-
- MYSQL57=1
|
21
|
-
- POSTGRESQL=1
|
22
|
-
gemfile:
|
23
|
-
- gemfiles/activerecord_5.1.gemfile
|
24
|
-
- gemfiles/activerecord_5.2.gemfile
|
25
|
-
- gemfiles/activerecord_6.0.gemfile
|
26
|
-
- gemfiles/activerecord_6.1.gemfile
|
27
|
-
exclude:
|
28
|
-
- ruby: 2.4
|
29
|
-
gemfile: gemfiles/activerecord_6.0.gemfile
|
30
|
-
- ruby: 2.4
|
31
|
-
gemfile: gemfiles/activerecord_6.1.gemfile
|
32
|
-
env:
|
33
|
-
BUNDLE_GEMFILE: ${{ matrix.gemfile }}
|
34
|
-
steps:
|
35
|
-
- uses: actions/checkout@v2
|
36
|
-
- uses: ruby/setup-ruby@v1
|
37
|
-
with:
|
38
|
-
ruby-version: ${{ matrix.ruby }}
|
39
|
-
bundler-cache: true
|
40
|
-
- name: Setup dependencies
|
41
|
-
run: |
|
42
|
-
for i in {1..60}; do docker-compose up -d && break; sleep 1; done
|
43
|
-
# Wait until database servers start
|
44
|
-
function mysql_ping { mysqladmin -u root -h 127.0.0.1 -P 13316 ping --ssl-mode=DISABLED; }
|
45
|
-
function mysql57_ping { mysqladmin -u root -h 127.0.0.1 -P 13317 ping --ssl-mode=DISABLED; }
|
46
|
-
function pg_ping { PGPASSWORD=password pg_isready -U postgres -h 127.0.0.1 -p 15442; }
|
47
|
-
for i in {1..60}; do mysql_ping && break; sleep 1; done
|
48
|
-
for i in {1..60}; do mysql57_ping && break; sleep 1; done
|
49
|
-
for i in {1..60}; do pg_ping && break; sleep 1; done
|
50
|
-
env:
|
51
|
-
MYSQL_PWD: password
|
52
|
-
- name: Run tests
|
53
|
-
run: ${{ matrix.env }} bundle exec rake
|
54
|
-
env:
|
55
|
-
BUNDLE_GEMFILE: ${{ matrix.gemfile }}
|
56
|
-
- name: Coveralls Parallel
|
57
|
-
uses: coverallsapp/github-action@v1.1.2
|
58
|
-
with:
|
59
|
-
github-token: ${{ secrets.GITHUB_TOKEN }}
|
60
|
-
flag-name: run-${{ matrix.ruby }}-${{ matrix.env }}-${{ matrix.gemfile }}
|
61
|
-
parallel: true
|
62
|
-
finish:
|
63
|
-
needs: build
|
64
|
-
runs-on: ubuntu-latest
|
65
|
-
steps:
|
66
|
-
- name: Coveralls Finished
|
67
|
-
uses: coverallsapp/github-action@v1.1.2
|
68
|
-
with:
|
69
|
-
github-token: ${{ secrets.GITHUB_TOKEN }}
|
70
|
-
parallel-finished: true
|
data/.gitignore
DELETED
@@ -1,25 +0,0 @@
|
|
1
|
-
*.gem
|
2
|
-
*.rbc
|
3
|
-
.bundle
|
4
|
-
.config
|
5
|
-
.yardoc
|
6
|
-
Gemfile.lock
|
7
|
-
InstalledFiles
|
8
|
-
_yardoc
|
9
|
-
coverage
|
10
|
-
doc/
|
11
|
-
lib/bundler/man
|
12
|
-
pkg
|
13
|
-
rdoc
|
14
|
-
spec/reports
|
15
|
-
test/tmp
|
16
|
-
test/version_tmp
|
17
|
-
tmp
|
18
|
-
.DS_Store
|
19
|
-
test.rb
|
20
|
-
Schemafile
|
21
|
-
*.schema
|
22
|
-
_site/
|
23
|
-
config.yml
|
24
|
-
/gemfiles/*.lock
|
25
|
-
*.swp
|