data_keeper 0.1.2 → 0.1.3

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: 246804bd313245cf8d56ab51d8784545efa1985af2303ec3827a7db48a0b8401
4
- data.tar.gz: 1833267238192680890e3f021fc6cfc67a0677567df97517eb65a59680bb38e1
3
+ metadata.gz: 1dc4571443a29e3b6e5ef297eaf58bcc904245f2fa03e9afdbcb8004156163a3
4
+ data.tar.gz: 8eeb45101080f53b64365b28a3d5b03201ff22bf57399682dfeeac439df59496
5
5
  SHA512:
6
- metadata.gz: fb3182638b4eb1713a6d567051e6c66f90aa0c25c247d8e5e6250525525721a893f74838ed8754b34d3bf957a47d22678e067992157e731bb7b68e74e6bdbb75
7
- data.tar.gz: 26a5cadb9d451db4af9069167b9fb605f6dbbc545e623d5d3eeb42d3360120688d9f6767332e93df2b5cb0fc343e105b4209e899ff2bbd91037330790b8782ab
6
+ metadata.gz: 6736489028cef881ae0c24617d87f54ac67d727121350e6a6c6bccbd1a13cc5c0eff21809b4a7705e34740a72270bebd7a65a6042dd253d98ee5cc4bc4455c8b
7
+ data.tar.gz: 30b58fe74b9b2c4beda31b7fb345bf2be6907c3f60e448cf7634e1458cf7ed6cff48662798b91dae4bd443b68ae680b01813595b0a95632a4a51f9e17e9f4b3b
@@ -52,6 +52,13 @@ module DataKeeper
52
52
 
53
53
  def load_partial_database!
54
54
  inflate(@file.path) do |schema_path, tables_path, sql_files|
55
+ cmd = Terrapin::CommandLine.new(
56
+ 'psql',
57
+ "#{connection_args} -d :database -c :command",
58
+ environment: psql_env
59
+ )
60
+ cmd.run(database: database, host: host, port: port, command: "drop schema if exists public")
61
+
55
62
  pg_restore = Terrapin::CommandLine.new(
56
63
  'pg_restore',
57
64
  "#{connection_args} -j 4 --no-owner --dbname :database #{schema_path} 2>/dev/null",
@@ -1,3 +1,3 @@
1
1
  module DataKeeper
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: data_keeper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roger Campos
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-07-23 00:00:00.000000000 Z
11
+ date: 2021-08-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord