pg_saurus 4.0.1 → 4.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pg_saurus/tools.rb +4 -2
- data/lib/pg_saurus/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 20e72495c2fa2ffdc422bfeefac5c196c888685cf98ed513dc94da2608476572
|
4
|
+
data.tar.gz: '0366790a931f6ebb4283f80d1112588de221d3844968eaedeeb059c4443124ec'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 149f1cd2738b90d36cc52900af989fed800064b28242e0de3aadb50eff7c3316c240d2696f01de3c6b14d395e2202a68427bb8ff6ab76b673f29f15c8f1cd78a
|
7
|
+
data.tar.gz: 489cda1e93255d713f7fa6c479b738c436ec74fb7591358d7a02c6e3acd0693adcf0e6d63630000299a46ae375f65fd48c2e841cff757eed29cc74e03a664202
|
data/lib/pg_saurus/tools.rb
CHANGED
@@ -19,8 +19,10 @@ module PgSaurus
|
|
19
19
|
#
|
20
20
|
# @return [void]
|
21
21
|
def create_schema_if_not_exists(schema_name)
|
22
|
-
|
23
|
-
|
22
|
+
unless schemas.include?(schema_name.to_s)
|
23
|
+
sql = %{CREATE SCHEMA "#{schema_name}"}
|
24
|
+
connection.execute sql
|
25
|
+
end
|
24
26
|
end
|
25
27
|
|
26
28
|
# Ensure schema does not exists.
|
data/lib/pg_saurus/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pg_saurus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.
|
4
|
+
version: 4.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Potapov Sergey
|
@@ -13,7 +13,7 @@ authors:
|
|
13
13
|
autorequire:
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
|
-
date: 2019-
|
16
|
+
date: 2019-11-16 00:00:00.000000000 Z
|
17
17
|
dependencies:
|
18
18
|
- !ruby/object:Gem::Dependency
|
19
19
|
name: pg
|