prick 0.43.0 → 0.43.1
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 +4 -4
- data/exe/prick +2 -1
- data/lib/prick/subcommand/prick-build.rb +1 -1
- data/lib/prick/subcommand/prick-fox.rb +5 -2
- data/lib/prick/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 27d815c3a439f4e7bd5ca403a56448fb2c4f4025fd6ab3a9ace77361252e8948
|
4
|
+
data.tar.gz: 51bd8615c1e9c87e6471d833c1b0715d1a8b4e7bf688842af8c054f643c4d602
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 128b169433e4cae1fd44ba0ab5de7f359a2ace6eb00d369707dacf3dfc9ac7e36d51e778aaf4fbab84b6c7a096c1562cd9e8b248e5cd9977a5ce6e8318ab1032
|
7
|
+
data.tar.gz: c095e82fb28426747a7abc679fd2e77e92742068e471cc87537c6f26fa7199f02a9206e11073fbd080c83280c36b156d68aa264bc0a34fa6ba3fa3ccc50cc4d5
|
data/exe/prick
CHANGED
@@ -166,7 +166,8 @@ SPEC = %(
|
|
166
166
|
The --reset option resets data to the last snapshot before loading the
|
167
167
|
file. The --exclude option lists schemas that should not be included in
|
168
168
|
fox, typically schemas that doens't comply with prick's naming
|
169
|
-
conventions
|
169
|
+
conventions. Schemas that are marked 'standard: false' in build.yml are
|
170
|
+
always excluded
|
170
171
|
|
171
172
|
snapshot!
|
172
173
|
Records maximum ID for all tables and stores them in the prick.snapshot
|
@@ -36,7 +36,7 @@ module Prick::SubCommand
|
|
36
36
|
if force
|
37
37
|
# Drop all schemas except the prick schema and re-creates the
|
38
38
|
# public schema
|
39
|
-
|
39
|
+
builder.pool.delete_schema("prick") if super_conn.schema.exist?("prick")
|
40
40
|
super_conn.rdbms.empty!(database, public: false, exclude: ["prick"])
|
41
41
|
else
|
42
42
|
# Find all schemas
|
@@ -3,8 +3,11 @@
|
|
3
3
|
require_relative '../builder/builder.rb'
|
4
4
|
|
5
5
|
module Prick::SubCommand
|
6
|
-
def self.fox(database, username, files, reset: false, exclude: nil)
|
7
|
-
self.drop_data(database) # In prick-drop
|
6
|
+
def self.fox(database, username, files, builddir: Prick.state.schema_dir, reset: false, exclude: nil)
|
7
|
+
self.drop_data(database) if reset # In prick-drop
|
8
|
+
conn = Prick.state.connection
|
9
|
+
builder = Prick::Build::Builder.new(conn, builddir)
|
10
|
+
exclude = (exclude || []) + builder.pg_graph_ignore_schemas
|
8
11
|
opts = {
|
9
12
|
state: FOX_STATE_PATH,
|
10
13
|
delete: "none",
|
data/lib/prick/version.rb
CHANGED