prick 0.20.16 → 0.20.17

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 20f00d302f4282832c257119bf9bfe5f2d171c9d706ec74bca142681d670a596
4
- data.tar.gz: 5facc31ae461bcc1919509d81d71ea4f9244c20fae8e5a693f991b419343d47b
3
+ metadata.gz: 0a3550348676d001eaf4c5079c6f0bfc1f1caba9eb05a8920f56d4761e0f333f
4
+ data.tar.gz: ca409eef164d2fda047600b1f5ac609fc0626ca84e8266b501af2fdad7f4a992
5
5
  SHA512:
6
- metadata.gz: 726d74592d2568c862538ea0692a01067eda7a7ffd3f5dba6b80abea1b3d3a96ae0f11faa5a4ee65792de764a628f4f73691d172f9e095b24b40cba9f140efc8
7
- data.tar.gz: 708e3863256205385a418b4ce3436d3639f576fd6700d478b7e11933232187af6bda60988d0a952942cd56351d896835c574b8a31c920b991ac7a663dc89147e
6
+ metadata.gz: 77948de2c46b5cd16f33a8c44fff0c8cecf6701802a0c33d68619cea5daeb061d7a1f7d6ace4ec0ff4a321d5d3daf780f9808766edd552915f6277133c8340e4
7
+ data.tar.gz: a3753a90fe4251eb673b72c072367ba6af4b1ed164ef4243288abe3dc43233bc0b059db866a4084ebb8d1cd79adc2b2212a532b3902a43b65ac4a8e337b7d22e
data/exe/prick CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  #$LOAD_PATH.unshift "/home/clr/prj/shellopts/lib"
4
4
  #$LOAD_PATH.unshift "/home/clr/prj/pg_graph/lib"
5
+ #$LOAD_PATH.unshift "/home/clr/prj/fixture_fox/lib"
5
6
 
6
7
  require 'bootsnap'
7
8
  begin
data/lib/builder/batch.rb CHANGED
@@ -138,7 +138,7 @@ module Prick
138
138
  # FIXME: Why only in FoxBatch - should be set higher up in the system
139
139
  conn.execute "update prick.versions set built_at = now() at time zone 'UTC'"
140
140
  rescue PG::SyntaxError, PG::Error => ex
141
- raise PostgresError, "prick: #{error} from #{node.path}"
141
+ raise PostgresError, "prick: #{ex.message}"
142
142
  end
143
143
  }
144
144
  t_type.emit
@@ -93,8 +93,6 @@ module Prick
93
93
  def execute(conn, create_schemas: schemas)
94
94
  group if batches.nil?
95
95
  conn.exec create_schemas.grep_v("public").map { |schema| "create schema #{schema}" }
96
- conn.schema.create("public", authorization: "postgres")
97
- conn.exec "grant usage, create on schema public to public"
98
96
  for batch in batches
99
97
  batch.execute
100
98
  end
data/lib/prick/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Prick
4
- VERSION = "0.20.16"
4
+ VERSION = "0.20.17"
5
5
  end
@@ -27,7 +27,7 @@ module Prick::SubCommand
27
27
 
28
28
  if exist
29
29
  if force
30
- # Drop all schemas
30
+ # Drop all schemas but re-creates the public schema
31
31
  super_conn.rdbms.empty!(database)
32
32
 
33
33
  else
@@ -46,6 +46,10 @@ module Prick::SubCommand
46
46
 
47
47
  # Drop refresh schemes
48
48
  refresh_schemas.each { |schema| conn.schema.drop(schema, cascade: true) }
49
+
50
+ # Re-create public schema
51
+ conn.schema.create("public", authorization: "postgres")
52
+ conn.exec "grant usage, create on schema public to public"
49
53
  end
50
54
  end
51
55
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prick
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.20.16
4
+ version: 0.20.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Claus Rasmussen