wyrm 0.3.2 → 0.3.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/.travis.yml +3 -4
- data/History.txt +3 -0
- data/lib/wyrm/restore.rb +1 -0
- data/lib/wyrm/schema_tools.rb +2 -3
- data/lib/wyrm/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c62a5cbc1df1fd2ae5e73af5674a321ae2c04113
|
4
|
+
data.tar.gz: 8e421d58a2cfdb36ab433fccbc5820464318e84b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: affd20c4d8423cb9ee3c20d96bf43bfa2de7fc009f2a4fc431828bf2fb08e05fb53b756754887ab6de6acae5cce92955fc59702be131b59f1434e93b409fa73e
|
7
|
+
data.tar.gz: e69e16c69c53ba23d2bacce42b5c000b3271076aef00ffa4f5ca32d708cb9f6fd46894412f369bbf6fb321d84a5d1fc02d1262d3f3f70dc6f2720fb8079f1202
|
data/.travis.yml
CHANGED
data/History.txt
CHANGED
data/lib/wyrm/restore.rb
CHANGED
@@ -41,6 +41,7 @@ class Wyrm::Restore
|
|
41
41
|
# sequel wants migrations numbered, but it's a bit of an annoyance for this.
|
42
42
|
def find_single( glob )
|
43
43
|
candidates = Pathname.glob container + glob
|
44
|
+
raise "no candidates for #{glob}. Probably #{container} does not have wyrm files." unless candidates.size == 1
|
44
45
|
raise "too many #{candidates.inspect} for #{glob}" unless candidates.size == 1
|
45
46
|
candidates.first
|
46
47
|
end
|
data/lib/wyrm/schema_tools.rb
CHANGED
@@ -56,16 +56,15 @@ module Wyrm::SchemaTools
|
|
56
56
|
else
|
57
57
|
raise
|
58
58
|
end
|
59
|
-
|
60
59
|
end
|
61
60
|
end
|
62
61
|
|
63
62
|
# this should be temporary
|
64
|
-
if tables.sort == foreign_keyed_tables.sort
|
63
|
+
if tables.any? && tables.sort == foreign_keyed_tables.sort
|
65
64
|
raise "can't remove #{tables.inspect} because they have mutual foreign keys"
|
66
65
|
end
|
67
66
|
|
68
|
-
# recursively delete tables
|
67
|
+
# recursively delete tables. Shuffle as kak workaround for dependency loops.
|
69
68
|
drop_tables foreign_keyed_tables.shuffle unless foreign_keyed_tables.empty?
|
70
69
|
end
|
71
70
|
|
data/lib/wyrm/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wyrm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Anderson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-09-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sequel
|
@@ -210,7 +210,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
210
210
|
version: '0'
|
211
211
|
requirements: []
|
212
212
|
rubyforge_project:
|
213
|
-
rubygems_version: 2.
|
213
|
+
rubygems_version: 2.4.8
|
214
214
|
signing_key:
|
215
215
|
specification_version: 4
|
216
216
|
summary: Transfer from one SQL rdbms to another
|