ridgepole 0.7.5.beta → 0.7.5.beta2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -1
- data/README.md +1 -0
- data/lib/ridgepole/ext/abstract_mysql_adapter/use_alter_index.rb +2 -1
- data/lib/ridgepole/version.rb +1 -1
- data/spec/mysql/migrate_/migrate_create_index_with_alter_spec.rb +2 -0
- data/spec/mysql/migrate_/migrate_drop_index_with_alter_spec.rb +2 -0
- 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: a293b069750362ad1735906f29acb1356c172c52b5faa203f32e0ed3872f8e7c
|
4
|
+
data.tar.gz: 130c175ab57c6583de05a9284df25d9b2733dbf70acf30b891c576d6ad97cd3c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3c00a86e1c838fe557769e3e4ed39cfd44dde72f801965d1016e0f6559034f3f9b9ce1ba87836ea8672097e3e2a0812f91f3284e29e49aab29722a6edeaf06ce
|
7
|
+
data.tar.gz: 7dac04f0b547c86d7ea9f55cb9e977ea248a25beb6fe8a77321ae432a01874dd2f96fe0b14d13ea8791a02cbe0370616b19f22f989c8b366c4b5e182072f6839
|
data/.travis.yml
CHANGED
@@ -16,7 +16,7 @@ matrix:
|
|
16
16
|
before_script:
|
17
17
|
- sudo service mysql stop
|
18
18
|
- sudo service postgresql stop
|
19
|
-
- docker-compose up -d
|
19
|
+
- for i in {1..60}; do docker-compose up -d && break; sleep 1; done
|
20
20
|
- function mysql_ping { mysqladmin -u root -h 127.0.0.1 -P 13316 -ppassword ping; }
|
21
21
|
- function mysql57_ping { mysqladmin -u root -h 127.0.0.1 -P 13317 -ppassword ping; }
|
22
22
|
- function pg_ping { PGPASSWORD=password pg_isready -U postgres -h 127.0.0.1 -p 15442; }
|
data/README.md
CHANGED
@@ -91,6 +91,7 @@ It defines DB schema using [Rails DSL](http://guides.rubyonrails.org/migrations.
|
|
91
91
|
* Fix `add_foreign_key` options ([issue#250](https://github.com/winebarrel/ridgepole/issues/250))
|
92
92
|
* `>= 0.7.5`
|
93
93
|
* Fix polymorphic options ([pull#263](https://github.com/winebarrel/ridgepole/pull/263))
|
94
|
+
* Fix `--mysql-use-alter` option ([pull#246](https://github.com/winebarrel/ridgepole/pull/264))
|
94
95
|
|
95
96
|
## Installation
|
96
97
|
|
@@ -11,7 +11,8 @@ module Ridgepole
|
|
11
11
|
execute "ALTER TABLE #{quote_table_name(table_name)} ADD #{index_type} INDEX #{quote_column_name(index_name)} #{index_using} (#{index_columns})#{index_options}"
|
12
12
|
end
|
13
13
|
|
14
|
-
def remove_index
|
14
|
+
def remove_index(table_name, options)
|
15
|
+
index_name = index_name_for_remove(table_name, options)
|
15
16
|
execute "ALTER TABLE #{quote_table_name(table_name)} DROP INDEX #{quote_column_name(index_name)}"
|
16
17
|
end
|
17
18
|
end
|
data/lib/ridgepole/version.rb
CHANGED
@@ -130,6 +130,8 @@ describe 'Ridgepole::Client#diff -> migrate' do
|
|
130
130
|
delta = subject.diff(expected_dsl)
|
131
131
|
expect(delta.differ?).to be_truthy
|
132
132
|
expect(subject.dump).to match_ruby actual_dsl
|
133
|
+
_migrated, sql = delta.migrate(noop: true)
|
134
|
+
expect(sql).to match(/ALTER/)
|
133
135
|
delta.migrate
|
134
136
|
expect(subject.dump).to match_ruby expected_dsl
|
135
137
|
}
|
@@ -130,6 +130,8 @@ describe 'Ridgepole::Client#diff -> migrate' do
|
|
130
130
|
delta = subject.diff(expected_dsl)
|
131
131
|
expect(delta.differ?).to be_truthy
|
132
132
|
expect(subject.dump).to match_ruby actual_dsl
|
133
|
+
_migrated, sql = delta.migrate(noop: true)
|
134
|
+
expect(sql).to match(/ALTER/)
|
133
135
|
delta.migrate
|
134
136
|
expect(subject.dump).to match_ruby expected_dsl
|
135
137
|
}
|
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.7.5.
|
4
|
+
version: 0.7.5.beta2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Genki Sugawara
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-11-
|
11
|
+
date: 2018-11-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|