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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9b37098d58d45c753f7465e94b0a7e2845b8b3863424f21f79f34d4c6306e6ed
4
- data.tar.gz: eb3880a0fae813c264d6b4e712e242cb03c35c3aec578f62005394805c910064
3
+ metadata.gz: b9cc05b5a498f18d7c41e0735a5918197348ce0e9de2414afbb712d20a81b621
4
+ data.tar.gz: d77fc6f1c3fabe22e745b7b2d4879b36c5abf2566ce704872a7076cadacc6ccb
5
5
  SHA512:
6
- metadata.gz: 47af48a564d3a68b0f91b22aca89b5d6a8753080e6a7fe1b97cdc8481a4c0adac7e576029dc720889acdf54935cb66bb114d92aac85f961f157c70aa7b5c2a56
7
- data.tar.gz: 806ef86e6d40e024b898f8e71cc97f94d2c94e77d59956d126d4152898a542400a2e9a76394ef9f1db2de1c8d330576de062c3ebc8f7d9acb3f29959b3634a25
6
+ metadata.gz: ed0d3bbf1e93ea75f24c68ab71ef99d48802a36efd083cef5d47663c720b027d401a78afd6068bd7f896902c1546298953fe50fcb97d74c955e77e0b54ab7719
7
+ data.tar.gz: b7f879b32d2174e4ac7413afcaed576ae6a8532761e47ecc049b501329ff57d85ea601dfe79790cb50e6863e88b3a9740d36f8061135f5b34f27b88ed7e6ccdc
@@ -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|
@@ -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
@@ -1,4 +1,4 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
  module Tapsoob
3
- VERSION = "0.5.6".freeze
3
+ VERSION = "0.5.11".freeze
4
4
  end
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.6
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-20 00:00:00.000000000 Z
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