ridgepole 0.8.8 → 0.9.0.beta
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/test.yml +65 -0
- data/.rubocop.yml +11 -36
- data/Appraisals +4 -5
- data/README.md +27 -17
- data/bin/ridgepole +13 -1
- data/gemfiles/{activerecord_5.0.gemfile → activerecord_6.1.gemfile} +1 -2
- data/lib/ridgepole/client.rb +8 -3
- data/lib/ridgepole/default_limit.rb +1 -1
- data/lib/ridgepole/delta.rb +16 -1
- data/lib/ridgepole/diff.rb +55 -20
- data/lib/ridgepole/dsl_parser.rb +3 -4
- data/lib/ridgepole/dsl_parser/context.rb +1 -1
- data/lib/ridgepole/dsl_parser/table_definition.rb +51 -41
- data/lib/ridgepole/execute_expander.rb +10 -1
- data/lib/ridgepole/ext/abstract_adapter/disable_table_options.rb +9 -1
- data/lib/ridgepole/external_sql_executer.rb +12 -1
- data/lib/ridgepole/version.rb +1 -1
- data/ridgepole.gemspec +5 -3
- data/spec/erb_helper.rb +9 -5
- data/spec/mysql/_migrate/migrate_change_table_option_spec.rb +2 -2
- data/spec/mysql/cli/ridgepole_spec.rb +35 -1
- data/spec/mysql/collation/collation_spec.rb +8 -8
- data/spec/mysql/dump/dump_class_method_spec.rb +3 -3
- data/spec/mysql/dump/dump_spec.rb +3 -3
- data/spec/mysql/dump/dump_unknown_column_type_spec.rb +1 -1
- data/spec/mysql/dump/dump_without_table_options_spec.rb +2 -2
- data/spec/mysql/fk/migrate_create_fk_spec.rb +79 -10
- data/spec/mysql/migrate/migrate_add_column_with_alter_extra_spec.rb +88 -0
- data/spec/mysql/migrate/migrate_change_column3_spec.rb +109 -18
- data/spec/mysql/migrate/migrate_change_column8_spec.rb +38 -5
- data/spec/mysql/migrate/migrate_change_index_spec.rb +7 -1
- data/spec/mysql/migrate/migrate_check_relation_column_type_spec.rb +4 -4
- data/spec/mysql/migrate/migrate_primary_key_spec.rb +30 -5
- data/spec/mysql/migrate/migrate_same_spec.rb +3 -3
- data/spec/mysql/text_blob_types/text_blob_types_spec.rb +5 -2
- data/spec/postgresql/dump/dump_spec.rb +1 -1
- data/spec/postgresql/migrate/migrate_add_column_spec.rb +11 -4
- data/spec/postgresql/migrate/migrate_change_column_spec.rb +4 -0
- data/spec/postgresql/migrate/migrate_drop_column_spec.rb +11 -4
- data/spec/postgresql/migrate/migrate_same_spec.rb +1 -1
- data/spec/spec_condition.rb +4 -0
- data/spec/spec_helper.rb +2 -1
- metadata +43 -20
- data/.travis.yml +0 -45
- data/lib/ridgepole/ext/abstract_mysql_adapter/use_alter_index.rb +0 -31
- data/spec/mysql/migrate_/migrate_create_index_with_alter_spec.rb +0 -141
- data/spec/mysql/migrate_/migrate_drop_index_with_alter_spec.rb +0 -141
@@ -219,11 +219,17 @@ describe 'Ridgepole::Client#diff -> migrate' do
|
|
219
219
|
t.index(["from_date"], **{:name=>"emp_no", :using=>:btree, :unique=>false})
|
220
220
|
end
|
221
221
|
RUBY
|
222
|
+
}
|
223
|
+
|
224
|
+
# duplicated index checker is deleted in 6.1
|
225
|
+
# https://github.com/rails/rails/commit/edb23791d2ee9df89c5a4f24d72940ff8eaec8fc#diff-5a1c923abf3a794dbc133959167f794b2479ea8bcd0b1deda7766c22f05e8dfeL1198
|
226
|
+
it 'detects duplicated index', condition: '< 6.1' do
|
227
|
+
delta = client(bulk_change: true).diff(expected_dsl)
|
222
228
|
|
223
229
|
# XXX: Can not add an index of the same name
|
224
230
|
expect do
|
225
231
|
delta.migrate
|
226
232
|
end.to raise_error(/Index name 'emp_no' on table 'dept_emp' already exists/)
|
227
|
-
|
233
|
+
end
|
228
234
|
end
|
229
235
|
end
|
@@ -68,7 +68,7 @@ describe 'Ridgepole::Client#diff -> migrate', condition: '>= 5.1.0' do
|
|
68
68
|
t.date "to_date", null: false
|
69
69
|
end
|
70
70
|
|
71
|
-
create_table "employees", id: :bigint, unsigned: true, force: :cascade do |t|
|
71
|
+
create_table "employees", <%= i cond(">= 6.1", { id: { type: :bigint, unsigned: true } }, { id: :bigint, unsigned: true }) %>, force: :cascade do |t|
|
72
72
|
t.integer "emp_no", null: false
|
73
73
|
t.date "birth_date", null: false
|
74
74
|
t.string "first_name", limit: 14, null: false
|
@@ -88,7 +88,7 @@ describe 'Ridgepole::Client#diff -> migrate', condition: '>= 5.1.0' do
|
|
88
88
|
t.date "to_date", null: false
|
89
89
|
end
|
90
90
|
|
91
|
-
create_table "employees", id: :bigint, unsigned: true, force: :cascade do |t|
|
91
|
+
create_table "employees", <%= i cond(">= 6.1", { id: { type: :bigint, unsigned: true } }, { id: :bigint, unsigned: true }) %>, force: :cascade do |t|
|
92
92
|
t.integer "emp_no", null: false
|
93
93
|
t.date "birth_date", null: false
|
94
94
|
t.string "first_name", limit: 14, null: false
|
@@ -179,7 +179,7 @@ describe 'Ridgepole::Client#diff -> migrate', condition: '>= 5.1.0' do
|
|
179
179
|
t.date "to_date", null: false
|
180
180
|
end
|
181
181
|
|
182
|
-
create_table "employees", id: :bigint, unsigned: true, force: :cascade do |t|
|
182
|
+
create_table "employees", <%= i cond(">= 6.1", { id: { type: :bigint, unsigned: true } }, { id: :bigint, unsigned: true }) %>, force: :cascade do |t|
|
183
183
|
t.integer "emp_no", null: false
|
184
184
|
t.date "birth_date", null: false
|
185
185
|
t.string "first_name", limit: 14, null: false
|
@@ -199,7 +199,7 @@ describe 'Ridgepole::Client#diff -> migrate', condition: '>= 5.1.0' do
|
|
199
199
|
t.date "to_date", null: false
|
200
200
|
end
|
201
201
|
|
202
|
-
create_table "employees", id: :bigint, unsigned: true, force: :cascade do |t|
|
202
|
+
create_table "employees", <%= i cond(">= 6.1", { id: { type: :bigint, unsigned: true } }, { id: :bigint, unsigned: true }) %>, force: :cascade do |t|
|
203
203
|
t.integer "emp_no", null: false
|
204
204
|
t.date "birth_date", null: false
|
205
205
|
t.string "first_name", limit: 14, null: false
|
@@ -3,7 +3,7 @@
|
|
3
3
|
describe 'Ridgepole::Client#diff -> migrate' do
|
4
4
|
let(:actual_dsl) do
|
5
5
|
erbh(<<-ERB)
|
6
|
-
create_table "employees", id: :integer, unsigned: true, force: :cascade do |t|
|
6
|
+
create_table "employees", <%= i cond(">= 6.1", { id: { type: :integer, unsigned: true } }, { id: :integer, unsigned: true }) %>, force: :cascade do |t|
|
7
7
|
end
|
8
8
|
ERB
|
9
9
|
end
|
@@ -23,11 +23,11 @@ describe 'Ridgepole::Client#diff -> migrate' do
|
|
23
23
|
end
|
24
24
|
|
25
25
|
it {
|
26
|
-
expect(Ridgepole::Logger.instance).to receive(:warn).with(<<-
|
26
|
+
expect(Ridgepole::Logger.instance).to receive(:warn).with(erbh(<<-ERB))
|
27
27
|
[WARNING] Primary key definition of `employees` differ but `allow_pk_change` option is false
|
28
|
-
from: {:id=>:integer, :unsigned=>true}
|
28
|
+
from: <%= i cond(">= 6.1", "{:id=>{:type=>:integer, :unsigned=>true}}", "{:id=>:integer, :unsigned=>true}") %>
|
29
29
|
to: {:id=>:bigint, :unsigned=>true}
|
30
|
-
|
30
|
+
ERB
|
31
31
|
|
32
32
|
delta = subject.diff(expected_dsl)
|
33
33
|
expect(delta.differ?).to be_falsey
|
@@ -58,7 +58,7 @@ describe 'Ridgepole::Client#diff -> migrate' do
|
|
58
58
|
let(:allow_pk_change) { true }
|
59
59
|
let(:expected_dsl) do
|
60
60
|
erbh(<<-ERB)
|
61
|
-
create_table "employees", id: :bigint, unsigned: true, force: :cascade do |t|
|
61
|
+
create_table "employees", <%= i cond(">= 6.1", { id: { type: :bigint, unsigned: true } }, { id: :bigint, unsigned: true }) %>, force: :cascade do |t|
|
62
62
|
end
|
63
63
|
|
64
64
|
create_table "salaries", force: :cascade do |t|
|
@@ -76,4 +76,29 @@ describe 'Ridgepole::Client#diff -> migrate' do
|
|
76
76
|
expect(subject.dump).to match_ruby expected_dsl
|
77
77
|
}
|
78
78
|
end
|
79
|
+
|
80
|
+
context 'when deafult: nil' do
|
81
|
+
let(:allow_pk_change) { true }
|
82
|
+
|
83
|
+
let(:actual_dsl) do
|
84
|
+
erbh(<<-ERB)
|
85
|
+
create_table "foo", id: :integer, unsigned: true, default: nil, force: :cascade do |t|
|
86
|
+
end
|
87
|
+
ERB
|
88
|
+
end
|
89
|
+
|
90
|
+
let(:expected_dsl) do
|
91
|
+
erbh(<<-ERB)
|
92
|
+
create_table "foo", id: :integer, default: nil, force: :cascade do |t|
|
93
|
+
end
|
94
|
+
ERB
|
95
|
+
end
|
96
|
+
|
97
|
+
it {
|
98
|
+
delta = subject.diff(expected_dsl)
|
99
|
+
expect(delta.differ?).to be_truthy
|
100
|
+
delta.migrate
|
101
|
+
expect(subject.dump).to match_ruby expected_dsl
|
102
|
+
}
|
103
|
+
end
|
79
104
|
end
|
@@ -4,12 +4,12 @@ describe 'Ridgepole::Client#diff -> migrate' do
|
|
4
4
|
context 'when database and definition are same' do
|
5
5
|
let(:dsl) do
|
6
6
|
erbh(<<-ERB)
|
7
|
-
create_table "clubs", <%= i cond('>= 5.1'
|
7
|
+
create_table "clubs", <%= i cond({ '>= 5.1, < 6.1' => { id: :integer, unsigned: true }, ">= 6.1" => { id: { type: :integer, unsigned: true } } }, { unsigned: true }) %>, force: :cascade do |t|
|
8
8
|
t.string "name", default: "", null: false
|
9
9
|
t.index ["name"], name: "idx_name", unique: true, <%= i cond(5.0, using: :btree) %>
|
10
10
|
end
|
11
11
|
|
12
|
-
create_table "departments", primary_key: "dept_no", id: :string, limit: 4, force: :cascade do |t|
|
12
|
+
create_table "departments", primary_key: "dept_no", <%= i cond(">= 6.1", { id: { type: :string, limit: 4 } }, { id: :string, limit: 4 }) %>, force: :cascade do |t|
|
13
13
|
t.string "dept_name", limit: 40, null: false
|
14
14
|
t.index ["dept_name"], name: "dept_name", unique: true, <%= i cond(5.0, using: :btree) %>
|
15
15
|
end
|
@@ -32,7 +32,7 @@ describe 'Ridgepole::Client#diff -> migrate' do
|
|
32
32
|
t.index ["emp_no"], name: "emp_no", <%= i cond(5.0, using: :btree) %>
|
33
33
|
end
|
34
34
|
|
35
|
-
create_table "employee_clubs", <%= i cond('>= 5.1'
|
35
|
+
create_table "employee_clubs", <%= i cond({ '>= 5.1, < 6.1' => { id: :integer, unsigned: true }, ">= 6.1" => { id: { type: :integer, unsigned: true } } }, { unsigned: true }) %>, force: :cascade do |t|
|
36
36
|
t.integer "emp_no", null: false, unsigned: true
|
37
37
|
t.integer "club_id", null: false, unsigned: true
|
38
38
|
t.index ["emp_no", "club_id"], name: "idx_emp_no_club_id", <%= i cond(5.0, using: :btree) %>
|
@@ -5,7 +5,7 @@ describe 'Ridgepole::Client (with new text/blob types)' do
|
|
5
5
|
subject { client }
|
6
6
|
|
7
7
|
it do
|
8
|
-
|
8
|
+
table_def = <<-RUBY
|
9
9
|
create_table :foos, id: :unsigned_integer do |t|
|
10
10
|
t.blob :blob
|
11
11
|
t.tinyblob :tiny_blob
|
@@ -20,12 +20,13 @@ describe 'Ridgepole::Client (with new text/blob types)' do
|
|
20
20
|
t.unsigned_integer :unsigned_integer
|
21
21
|
end
|
22
22
|
RUBY
|
23
|
+
delta = subject.diff(table_def)
|
23
24
|
|
24
25
|
expect(delta.differ?).to be_truthy
|
25
26
|
delta.migrate
|
26
27
|
|
27
28
|
expect(subject.dump).to match_ruby erbh(<<-ERB)
|
28
|
-
create_table "foos", id: :integer, unsigned: true, force: :cascade do |t|
|
29
|
+
create_table "foos", <%= i cond(">= 6.1", { id: { type: :integer, unsigned: true } }, { id: :integer, unsigned: true }) %>, force: :cascade do |t|
|
29
30
|
t.binary "blob", <%= i cond(5.0, limit: 65535) %>
|
30
31
|
t.<%= cond('< 6.0.0.beta2', :blob, :binary) %> "tiny_blob", <%= i cond('< 6.0.0.beta2', {limit: 255}, {size: :tiny}) %>
|
31
32
|
t.binary "medium_blob", <%= i cond('< 6.0.0.beta2', {limit: 16777215}, {size: :medium}) %>
|
@@ -39,6 +40,8 @@ describe 'Ridgepole::Client (with new text/blob types)' do
|
|
39
40
|
t.integer "unsigned_integer", unsigned: true
|
40
41
|
end
|
41
42
|
ERB
|
43
|
+
|
44
|
+
expect(subject.diff(table_def).differ?).to be_falsey
|
42
45
|
end
|
43
46
|
end
|
44
47
|
|
@@ -12,7 +12,7 @@ describe 'Ridgepole::Client#dump' do
|
|
12
12
|
t.index ["name"], name: "idx_name", unique: true, <%= i cond(5.0, using: :btree) %>
|
13
13
|
end
|
14
14
|
|
15
|
-
create_table "departments", primary_key: "dept_no", id: :string, limit: 4, force: :cascade do |t|
|
15
|
+
create_table "departments", primary_key: "dept_no", <%= i cond(">= 6.1", { id: { type: :string, limit: 4 } }, { id: :string, limit: 4 }) %>, force: :cascade do |t|
|
16
16
|
t.string "dept_name", limit: 40, null: false
|
17
17
|
t.index ["dept_name"], name: "idx_dept_name", unique: true, <%= i cond(5.0, using: :btree) %>
|
18
18
|
end
|
@@ -116,10 +116,12 @@ describe 'Ridgepole::Client#diff -> migrate' do
|
|
116
116
|
end
|
117
117
|
|
118
118
|
create_table "titles", id: false, force: :cascade do |t|
|
119
|
-
t.integer
|
120
|
-
t.string
|
121
|
-
t.date
|
122
|
-
t.date
|
119
|
+
t.integer "emp_no", null: false
|
120
|
+
t.string "title", limit: 50, null: false
|
121
|
+
t.date "from_date", null: false
|
122
|
+
t.date "to_date"
|
123
|
+
t.serial "title_no", null: false
|
124
|
+
t.bigserial "title_bigno", null: false
|
123
125
|
t.index ["emp_no"], name: "idx_titles_emp_no", <%= i cond(5.0, using: :btree) %>
|
124
126
|
end
|
125
127
|
ERB
|
@@ -149,6 +151,11 @@ describe 'Ridgepole::Client#diff -> migrate' do
|
|
149
151
|
t.column("age", :integer, **{:null=>false})
|
150
152
|
t.column("updated_at", :date, **{})
|
151
153
|
end
|
154
|
+
|
155
|
+
change_table("titles", bulk: true) do |t|
|
156
|
+
t.column("title_no", :serial, **{:null=>false})
|
157
|
+
t.column("title_bigno", :bigserial, **{:null=>false})
|
158
|
+
end
|
152
159
|
RUBY
|
153
160
|
delta.migrate
|
154
161
|
expect(subject.dump).to match_ruby expected_dsl
|
@@ -157,6 +157,8 @@ describe 'Ridgepole::Client#diff -> migrate' do
|
|
157
157
|
create_table "clubs", force: :cascade do |t|
|
158
158
|
t.string "name", default: "", null: false
|
159
159
|
t.text "desc"
|
160
|
+
t.serial "club_no"
|
161
|
+
t.bigserial "club_bigno"
|
160
162
|
end
|
161
163
|
ERB
|
162
164
|
end
|
@@ -166,6 +168,8 @@ describe 'Ridgepole::Client#diff -> migrate' do
|
|
166
168
|
create_table "clubs", force: :cascade do |t|
|
167
169
|
t.string "name", default: "", null: false
|
168
170
|
t.text "desc"
|
171
|
+
t.serial "club_no"
|
172
|
+
t.bigserial "club_bigno"
|
169
173
|
end
|
170
174
|
ERB
|
171
175
|
end
|
@@ -54,10 +54,12 @@ describe 'Ridgepole::Client#diff -> migrate' do
|
|
54
54
|
end
|
55
55
|
|
56
56
|
create_table "titles", id: false, force: :cascade do |t|
|
57
|
-
t.integer
|
58
|
-
t.string
|
59
|
-
t.date
|
60
|
-
t.date
|
57
|
+
t.integer "emp_no", null: false
|
58
|
+
t.string "title", limit: 50, null: false
|
59
|
+
t.date "from_date", null: false
|
60
|
+
t.date "to_date"
|
61
|
+
t.serial "title_no", null: false
|
62
|
+
t.bigserial "title_bigno", null: false
|
61
63
|
t.index ["emp_no"], name: "idx_titles_emp_no", <%= i cond(5.0, using: :btree) %>
|
62
64
|
end
|
63
65
|
ERB
|
@@ -148,6 +150,11 @@ describe 'Ridgepole::Client#diff -> migrate' do
|
|
148
150
|
t.remove("last_name")
|
149
151
|
t.remove("hire_date")
|
150
152
|
end
|
153
|
+
|
154
|
+
change_table("titles", bulk: true) do |t|
|
155
|
+
t.remove("title_no")
|
156
|
+
t.remove("title_bigno")
|
157
|
+
end
|
151
158
|
RUBY
|
152
159
|
delta.migrate
|
153
160
|
expect(subject.dump).to match_ruby expected_dsl
|
@@ -9,7 +9,7 @@ describe 'Ridgepole::Client#diff -> migrate' do
|
|
9
9
|
t.index ["name"], name: "idx_name", unique: true, <%= i cond(5.0, using: :btree) %>
|
10
10
|
end
|
11
11
|
|
12
|
-
create_table "departments", primary_key: "dept_no", id: :string, limit: 4, force: :cascade do |t|
|
12
|
+
create_table "departments", primary_key: "dept_no", <%= i cond(">= 6.1", { id: { type: :string, limit: 4 } }, { id: :string, limit: 4 }) %>, force: :cascade do |t|
|
13
13
|
t.string "dept_name", limit: 40, null: false
|
14
14
|
t.index ["dept_name"], name: "idx_dept_name", unique: true, <%= i cond(5.0, using: :btree) %>
|
15
15
|
end
|
data/spec/spec_condition.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
@@ -25,10 +25,11 @@ require 'erb_helper'
|
|
25
25
|
|
26
26
|
RSpec.configure do |config|
|
27
27
|
config.before(:all) do
|
28
|
-
if condition(:debug)
|
28
|
+
if condition(:debug) || condition(:verbose)
|
29
29
|
ActiveRecord::Migration.verbose = true
|
30
30
|
logger = Ridgepole::Logger.instance
|
31
31
|
logger.level = ::Logger::DEBUG
|
32
|
+
logger.verbose = condition(:verbose)
|
32
33
|
ActiveRecord::Base.logger = logger
|
33
34
|
else
|
34
35
|
ActiveRecord::Migration.verbose = false
|
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.
|
4
|
+
version: 0.9.0.beta
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Genki Sugawara
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-01-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -16,20 +16,20 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 5.
|
19
|
+
version: '5.1'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: '6.
|
22
|
+
version: '6.2'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 5.
|
29
|
+
version: '5.1'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: '6.
|
32
|
+
version: '6.2'
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: diffy
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -218,14 +218,42 @@ dependencies:
|
|
218
218
|
requirements:
|
219
219
|
- - ">="
|
220
220
|
- !ruby/object:Gem::Version
|
221
|
-
version:
|
221
|
+
version: 1.7.0
|
222
222
|
type: :development
|
223
223
|
prerelease: false
|
224
224
|
version_requirements: !ruby/object:Gem::Requirement
|
225
225
|
requirements:
|
226
226
|
- - ">="
|
227
227
|
- !ruby/object:Gem::Version
|
228
|
-
version:
|
228
|
+
version: 1.7.0
|
229
|
+
- !ruby/object:Gem::Dependency
|
230
|
+
name: rubocop-rake
|
231
|
+
requirement: !ruby/object:Gem::Requirement
|
232
|
+
requirements:
|
233
|
+
- - ">="
|
234
|
+
- !ruby/object:Gem::Version
|
235
|
+
version: 0.5.1
|
236
|
+
type: :development
|
237
|
+
prerelease: false
|
238
|
+
version_requirements: !ruby/object:Gem::Requirement
|
239
|
+
requirements:
|
240
|
+
- - ">="
|
241
|
+
- !ruby/object:Gem::Version
|
242
|
+
version: 0.5.1
|
243
|
+
- !ruby/object:Gem::Dependency
|
244
|
+
name: rubocop-rspec
|
245
|
+
requirement: !ruby/object:Gem::Requirement
|
246
|
+
requirements:
|
247
|
+
- - ">="
|
248
|
+
- !ruby/object:Gem::Version
|
249
|
+
version: 2.1.0
|
250
|
+
type: :development
|
251
|
+
prerelease: false
|
252
|
+
version_requirements: !ruby/object:Gem::Requirement
|
253
|
+
requirements:
|
254
|
+
- - ">="
|
255
|
+
- !ruby/object:Gem::Version
|
256
|
+
version: 2.1.0
|
229
257
|
description: Ridgepole is a tool to manage DB schema. It defines DB schema using Rails
|
230
258
|
DSL, and updates DB schema according to DSL.
|
231
259
|
email:
|
@@ -235,10 +263,10 @@ executables:
|
|
235
263
|
extensions: []
|
236
264
|
extra_rdoc_files: []
|
237
265
|
files:
|
266
|
+
- ".github/workflows/test.yml"
|
238
267
|
- ".gitignore"
|
239
268
|
- ".rspec"
|
240
269
|
- ".rubocop.yml"
|
241
|
-
- ".travis.yml"
|
242
270
|
- Appraisals
|
243
271
|
- Gemfile
|
244
272
|
- LICENSE.txt
|
@@ -246,10 +274,10 @@ files:
|
|
246
274
|
- Rakefile
|
247
275
|
- bin/ridgepole
|
248
276
|
- docker-compose.yml
|
249
|
-
- gemfiles/activerecord_5.0.gemfile
|
250
277
|
- gemfiles/activerecord_5.1.gemfile
|
251
278
|
- gemfiles/activerecord_5.2.gemfile
|
252
279
|
- gemfiles/activerecord_6.0.gemfile
|
280
|
+
- gemfiles/activerecord_6.1.gemfile
|
253
281
|
- lib/ridgepole.rb
|
254
282
|
- lib/ridgepole/cli/config.rb
|
255
283
|
- lib/ridgepole/client.rb
|
@@ -264,7 +292,6 @@ files:
|
|
264
292
|
- lib/ridgepole/execute_expander.rb
|
265
293
|
- lib/ridgepole/ext/abstract_adapter/disable_table_options.rb
|
266
294
|
- lib/ridgepole/ext/abstract_mysql_adapter/dump_auto_increment.rb
|
267
|
-
- lib/ridgepole/ext/abstract_mysql_adapter/use_alter_index.rb
|
268
295
|
- lib/ridgepole/ext/pp_sort_hash.rb
|
269
296
|
- lib/ridgepole/ext/schema_dumper.rb
|
270
297
|
- lib/ridgepole/external_sql_executer.rb
|
@@ -374,8 +401,6 @@ files:
|
|
374
401
|
- spec/mysql/migrate/migrate_with_pre_post_query_spec.rb
|
375
402
|
- spec/mysql/migrate/migrate_with_tables_spec.rb
|
376
403
|
- spec/mysql/migrate/migrate_with_verbose_log_spec.rb
|
377
|
-
- spec/mysql/migrate_/migrate_create_index_with_alter_spec.rb
|
378
|
-
- spec/mysql/migrate_/migrate_drop_index_with_alter_spec.rb
|
379
404
|
- spec/mysql/ridgepole_test_database.sql
|
380
405
|
- spec/mysql/ridgepole_test_tables.sql
|
381
406
|
- spec/mysql/ridgepole_test_tables_unknown_column_type.sql
|
@@ -429,7 +454,7 @@ homepage: https://github.com/winebarrel/ridgepole
|
|
429
454
|
licenses:
|
430
455
|
- MIT
|
431
456
|
metadata: {}
|
432
|
-
post_install_message:
|
457
|
+
post_install_message:
|
433
458
|
rdoc_options: []
|
434
459
|
require_paths:
|
435
460
|
- lib
|
@@ -440,12 +465,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
440
465
|
version: 2.2.7
|
441
466
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
442
467
|
requirements:
|
443
|
-
- - "
|
468
|
+
- - ">"
|
444
469
|
- !ruby/object:Gem::Version
|
445
|
-
version:
|
470
|
+
version: 1.3.1
|
446
471
|
requirements: []
|
447
472
|
rubygems_version: 3.0.3
|
448
|
-
signing_key:
|
473
|
+
signing_key:
|
449
474
|
specification_version: 4
|
450
475
|
summary: Ridgepole is a tool to manage DB schema.
|
451
476
|
test_files:
|
@@ -538,8 +563,6 @@ test_files:
|
|
538
563
|
- spec/mysql/migrate/migrate_with_pre_post_query_spec.rb
|
539
564
|
- spec/mysql/migrate/migrate_with_tables_spec.rb
|
540
565
|
- spec/mysql/migrate/migrate_with_verbose_log_spec.rb
|
541
|
-
- spec/mysql/migrate_/migrate_create_index_with_alter_spec.rb
|
542
|
-
- spec/mysql/migrate_/migrate_drop_index_with_alter_spec.rb
|
543
566
|
- spec/mysql/ridgepole_test_database.sql
|
544
567
|
- spec/mysql/ridgepole_test_tables.sql
|
545
568
|
- spec/mysql/ridgepole_test_tables_unknown_column_type.sql
|