online_migrations 0.7.2 → 0.7.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/online_migrations/command_checker.rb +7 -1
- data/lib/online_migrations/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4a2724653e4ab4ed21740b3975373aa11fb21e699c3836f4291bd83e5a6ca536
|
|
4
|
+
data.tar.gz: e5d4bde6ce0555c3fe0de7d728c1637a34a7fda07645afa7a2a78acae8f1e61c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2790d7953dac93d9f75b4618235771882f630577d76bf301ad2483819aca17310d1e6ce460490230b5961e2f288410b4a2d2eaeda7684a6b44056967ff4f68dd
|
|
7
|
+
data.tar.gz: 7fdb6ea8f2f85cfa98d13a5d7a7d45ae8b3edc4097316519b950ab6ee6c930f27e8df0d2cc9a8d2948357615090994ef065bcd097346c34e7ab57887061d9f8e
|
data/CHANGELOG.md
CHANGED
|
@@ -386,7 +386,13 @@ module OnlineMigrations
|
|
|
386
386
|
|
|
387
387
|
if !new_table?(table_name)
|
|
388
388
|
indexes = connection.indexes(table_name).select do |index|
|
|
389
|
-
|
|
389
|
+
case index.columns
|
|
390
|
+
when String
|
|
391
|
+
# Expression index
|
|
392
|
+
columns.any? { |column| index.columns.include?(column) }
|
|
393
|
+
else
|
|
394
|
+
(index.columns & columns).any?
|
|
395
|
+
end
|
|
390
396
|
end
|
|
391
397
|
|
|
392
398
|
raise_error :remove_column,
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: online_migrations
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.7.
|
|
4
|
+
version: 0.7.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- fatkodima
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2023-
|
|
11
|
+
date: 2023-05-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activerecord
|
|
@@ -102,7 +102,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
102
102
|
- !ruby/object:Gem::Version
|
|
103
103
|
version: '0'
|
|
104
104
|
requirements: []
|
|
105
|
-
rubygems_version: 3.4.
|
|
105
|
+
rubygems_version: 3.4.12
|
|
106
106
|
signing_key:
|
|
107
107
|
specification_version: 4
|
|
108
108
|
summary: Catch unsafe PostgreSQL migrations in development and run them easier in
|