ridgepole 0.8.4 → 0.8.5
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/diff.rb +1 -1
- data/lib/ridgepole/version.rb +1 -1
- data/spec/mysql/migrate/migrate_change_column8_spec.rb +1 -1
- data/spec/mysql/migrate/migrate_change_table_comment_spec.rb +1 -1
- data/spec/mysql/migrate/migrate_change_table_option_spec.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8b49db08934182bd164f7910335dd04f3843e2e88c8593ab1d89f9bb4d0005d8
|
4
|
+
data.tar.gz: ff49a0ada6cac848407838596d23d93d75714079c0e95528015c4fcb9b2e4f56
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc24b664af9f8dad9f6c6d21b6eeaa083ad915c42b63b58ce0b7b50386e11c3462b2f30f9819c80f03e5c2a682dadd5a980a355993e8c4e2c8f4a0dc06703242
|
7
|
+
data.tar.gz: c40af5068b9ccbc226d9375b8b7501584a161bdc81554d6612e2c1135346f9dcdbe4a1371657e23bc6d9f70df795e67c8addc6a8b5db538ce658e3588ad3867c
|
data/README.md
CHANGED
@@ -109,6 +109,8 @@ It defines DB schema using [Rails DSL](http://guides.rubyonrails.org/migrations.
|
|
109
109
|
* Fix "topological sort failed" error ([pull#287](https://github.com/winebarrel/ridgepole/pull/287))
|
110
110
|
* `>= 0.8.4`
|
111
111
|
* 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/winebarrel/ridgepole/pull/290))
|
112
|
+
* `>= 0.8.5`
|
113
|
+
* Improve warning message on table options ([pull#291](https://github.com/winebarrel/ridgepole/pull/291))
|
112
114
|
</details>
|
113
115
|
|
114
116
|
## Installation
|
data/lib/ridgepole/diff.rb
CHANGED
@@ -169,7 +169,7 @@ module Ridgepole
|
|
169
169
|
|
170
170
|
unless from == to
|
171
171
|
@logger.warn(<<-MSG)
|
172
|
-
[WARNING]
|
172
|
+
[WARNING] Table option changes are ignored on `#{table_name}`.
|
173
173
|
from: #{from}
|
174
174
|
to: #{to}
|
175
175
|
MSG
|
data/lib/ridgepole/version.rb
CHANGED
@@ -4,7 +4,7 @@ describe 'Ridgepole::Client#diff -> migrate' do
|
|
4
4
|
before { subject.diff(actual_dsl).migrate }
|
5
5
|
subject { client(table_options: table_options, dump_without_table_options: dump_without_table_options) }
|
6
6
|
|
7
|
-
let(:warning_regexp) { /
|
7
|
+
let(:warning_regexp) { /Table option changes are ignored/ }
|
8
8
|
let(:dump_without_table_options) { false }
|
9
9
|
|
10
10
|
let(:actual_dsl) do
|
@@ -32,7 +32,7 @@ describe 'Ridgepole::Client#diff -> migrate' do
|
|
32
32
|
|
33
33
|
it {
|
34
34
|
expect(Ridgepole::Logger.instance).to receive(:warn).with(<<-MSG)
|
35
|
-
[WARNING]
|
35
|
+
[WARNING] Table option changes are ignored on `employees`.
|
36
36
|
from: {:comment=>"old comment"}
|
37
37
|
to: {:comment=>"new comment"}
|
38
38
|
MSG
|
@@ -31,7 +31,7 @@ describe 'Ridgepole::Client#diff -> migrate' do
|
|
31
31
|
|
32
32
|
it {
|
33
33
|
expect(Ridgepole::Logger.instance).to receive(:warn).with(<<-MSG)
|
34
|
-
[WARNING]
|
34
|
+
[WARNING] Table option changes are ignored on `employees`.
|
35
35
|
from: {:primary_key=>"emp_no"}
|
36
36
|
to: {:primary_key=>"emp_no2"}
|
37
37
|
MSG
|
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.8.
|
4
|
+
version: 0.8.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Genki Sugawara
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-10-
|
11
|
+
date: 2019-10-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|