tapsoob 0.5.6-java → 0.5.11-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tapsoob/operation.rb +2 -1
- data/lib/tapsoob/schema.rb +2 -2
- data/lib/tapsoob/version.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: b9cc05b5a498f18d7c41e0735a5918197348ce0e9de2414afbb712d20a81b621
|
4
|
+
data.tar.gz: d77fc6f1c3fabe22e745b7b2d4879b36c5abf2566ce704872a7076cadacc6ccb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ed0d3bbf1e93ea75f24c68ab71ef99d48802a36efd083cef5d47663c720b027d401a78afd6068bd7f896902c1546298953fe50fcb97d74c955e77e0b54ab7719
|
7
|
+
data.tar.gz: b7f879b32d2174e4ac7413afcaed576ae6a8532761e47ecc049b501329ff57d85ea601dfe79790cb50e6863e88b3a9740d36f8061135f5b34f27b88ed7e6ccdc
|
data/lib/tapsoob/operation.rb
CHANGED
@@ -118,6 +118,7 @@ module Tapsoob
|
|
118
118
|
|
119
119
|
def db
|
120
120
|
@db ||= Sequel.connect(database_url)
|
121
|
+
@db.extension :schema_dumper
|
121
122
|
@db.loggers << Tapsoob.log if opts[:debug]
|
122
123
|
|
123
124
|
# Set parameters
|
@@ -296,7 +297,7 @@ module Tapsoob
|
|
296
297
|
end
|
297
298
|
|
298
299
|
def fetch_tables_info
|
299
|
-
tables = db.tables
|
300
|
+
tables = db.send(:sort_dumped_tables, db.tables, {})
|
300
301
|
|
301
302
|
data = {}
|
302
303
|
apply_table_filter(tables).each do |table_name|
|
data/lib/tapsoob/schema.rb
CHANGED
@@ -15,13 +15,13 @@ module Tapsoob
|
|
15
15
|
template = ERB.new <<-END_MIG
|
16
16
|
Class.new(Sequel::Migration) do
|
17
17
|
def up
|
18
|
-
<% db.tables.each do |table| %>
|
18
|
+
<% db.send(:sort_dumped_tables, db.tables, {}).each do |table| %>
|
19
19
|
<%= db.dump_table_schema(table, indexes: false) %>
|
20
20
|
<% end %>
|
21
21
|
end
|
22
22
|
|
23
23
|
def down
|
24
|
-
<% db.tables.each do |table| %>
|
24
|
+
<% db.send(:sort_dumped_tables, db.tables, {}).reverse.each do |table| %>
|
25
25
|
drop_table("<%= table %>", if_exists: true)
|
26
26
|
<% end %>
|
27
27
|
end
|
data/lib/tapsoob/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tapsoob
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.11
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Félix Bellanger
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2022-04-
|
12
|
+
date: 2022-04-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|