pg_spec_helper 1.9.1 → 1.9.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/lib/pg_spec_helper/schemas.rb +4 -4
- data/lib/pg_spec_helper/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: f961a6b7a9074ea8c300e1a1ebe2214803f471447041831880c288f8f9124ba0
|
4
|
+
data.tar.gz: ae3dd1a3af18f3d0453ce3340884d1b2194c2903c35c105fa7830fa257215911
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 77e9df5f514da0c15b122b70df99bf577c764f01ffc5a2a812c9c474a19528d5047a9329c4a8800833637cec7e28924333d1532df1e8547eaa8afefffde8c93e
|
7
|
+
data.tar.gz: b9fef3126817ff75c269c9f9b9620d60a762875409a6dd898c1750b25c8390a7b66011b7ae40f24e440e22d798005ad3b490fe4e51e1cc88c75d380072c15cac
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,12 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [1.9.2](https://github.com/craigulliott/pg_spec_helper/compare/v1.9.1...v1.9.2) (2023-08-23)
|
4
|
+
|
5
|
+
|
6
|
+
### Bug Fixes
|
7
|
+
|
8
|
+
* actually deleting and recreating the public schema as part of the reset, this ensures we remove all functions and enums too ([5dd70c9](https://github.com/craigulliott/pg_spec_helper/commit/5dd70c93eb3754a3e84161dc571e3a39b814f34c))
|
9
|
+
|
3
10
|
## [1.9.1](https://github.com/craigulliott/pg_spec_helper/compare/v1.9.0...v1.9.1) (2023-08-23)
|
4
11
|
|
5
12
|
|
@@ -26,8 +26,8 @@ class PGSpecHelper
|
|
26
26
|
|
27
27
|
# delete all schemas in the database
|
28
28
|
def delete_all_schemas
|
29
|
-
# delete all schemas
|
30
|
-
get_schema_names.
|
29
|
+
# delete all schemas including public
|
30
|
+
get_schema_names.each do |schema_name|
|
31
31
|
connection.exec(<<~SQL)
|
32
32
|
-- temporarily set the client_min_messages to WARNING to
|
33
33
|
-- suppress the NOTICE messages about cascading deletes
|
@@ -36,8 +36,8 @@ class PGSpecHelper
|
|
36
36
|
SET client_min_messages TO NOTICE;
|
37
37
|
SQL
|
38
38
|
end
|
39
|
-
#
|
40
|
-
|
39
|
+
# recreate the public schema
|
40
|
+
create_schema :public
|
41
41
|
end
|
42
42
|
|
43
43
|
def schema_exists? schema_name
|