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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c44addc9926210f15e87edf0411337f5c26d438eb9c56149f0836fb00816a40a
4
- data.tar.gz: 612e706281e910142283d5db37112243bdcb4aeaef80e5b477525788103336fc
3
+ metadata.gz: a293b069750362ad1735906f29acb1356c172c52b5faa203f32e0ed3872f8e7c
4
+ data.tar.gz: 130c175ab57c6583de05a9284df25d9b2733dbf70acf30b891c576d6ad97cd3c
5
5
  SHA512:
6
- metadata.gz: cae35726e3780ca82aa489ee7bc77cab33c1d70d25548c152c9aadad31482deaa7e4a638b901b2a627a91c1fa796803a08b4df934e66ac1aa758e351e4f44279
7
- data.tar.gz: 9be70b10cd5ef421c2bbb48a44b48a3d2dab47b10e3d941a6323cefb14f804fa46ecc411dbfabfa748d750d03ddaabdb98d766156eb6485e754d51de04c0725a
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!(table_name, index_name)
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
@@ -1,3 +1,3 @@
1
1
  module Ridgepole
2
- VERSION = '0.7.5.beta'.freeze
2
+ VERSION = '0.7.5.beta2'.freeze
3
3
  end
@@ -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.beta
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-23 00:00:00.000000000 Z
11
+ date: 2018-11-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord