activerecord-snapshot 0.6.0 → 0.8.0

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
- SHA1:
3
- metadata.gz: 6eba73fe022d84f87c65e203c7fa148c81297f34
4
- data.tar.gz: e61ae919259ac0907d1a744ccf24bd949545c0c2
2
+ SHA256:
3
+ metadata.gz: df0b6d4cfd32a2749f92fa402eb4bcf3c11cadd7639eed131e4aa303339e2a6c
4
+ data.tar.gz: 52a7c83917b568d262fb50fd16c84815605eb7046ae3faa89cf3694343f6155d
5
5
  SHA512:
6
- metadata.gz: 5fa19cd8ff7628ce42abfab245969763b0236be969c356bfb833ba481fde32f2bb77c584a5f3e1a6beda9eed6bbb6ae1edfca61e0d142e30df3d82fd2ee74876
7
- data.tar.gz: e63b12b584dcd768c4f24108560cba3e62e12d4b06b1262b8a177ab626696cad6b5816fdf5f2432a0f80eb57b61402b762e85f73ea4ad73bfdb1bc4b5d70cc29
6
+ metadata.gz: 42c7599a1f7addc4f89f1cbf32243fdec12a25f070c6ab66e38a829fa4259d29c510aafcf03355bf6d53a43690e36bc57a52b619b1e1ebec22d87c07c346fe9b
7
+ data.tar.gz: 8532fbb8a3356726abae122e0f02dc26bd8c0b3c68cfff9c29d59598cbc94b6956e7cbdf2c714ebde2262c40a88678199f8f6982a0ae233bfdf2d5556837d269
@@ -8,8 +8,10 @@ module ActiveRecord
8
8
  end
9
9
 
10
10
  def dump(tables:, output:)
11
- dump_command("--no-data #{database} > #{output}") &&
12
- dump_command("--quick #{database} #{tables.join(" ")} >> #{output}")
11
+ # the --no-tablespaces and --single-transaction flags are necessary to dump a db
12
+ # containing SQL view queries and tablespace metadata
13
+ dump_command("--no-data --single-transaction --no-tablespaces --set-gtid-purged=OFF #{database} > #{output}") &&
14
+ dump_command("--quick --single-transaction --no-tablespaces --set-gtid-purged=OFF #{database} #{tables.join(" ")} >> #{output}")
13
15
  end
14
16
 
15
17
  def self.import(*args)
@@ -1,5 +1,5 @@
1
1
  module ActiveRecord
2
2
  module Snapshot
3
- VERSION = '0.6.0'
3
+ VERSION = '0.8.0'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord-snapshot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bernardo Farah
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-11-08 00:00:00.000000000 Z
11
+ date: 2022-03-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -173,8 +173,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
173
173
  - !ruby/object:Gem::Version
174
174
  version: '0'
175
175
  requirements: []
176
- rubyforge_project:
177
- rubygems_version: 2.5.2
176
+ rubygems_version: 3.0.3.1
178
177
  signing_key:
179
178
  specification_version: 4
180
179
  summary: Snapshots for ActiveRecord