pg_spec_helper 1.7.1 → 1.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -1
- data/lib/pg_spec_helper/triggers.rb +2 -2
- 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: fd8f4a7b6599921cd00cd8fbec742502611146587308599490f6449fcf8a069c
|
4
|
+
data.tar.gz: 5cbaaf930623821b7a4d40e462825345d132aeb79fe3c004bff4755c6ec761d9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0ce017210958d7e1a1874f302148f39dc09e8f77bb74d0a696f445eff89117e6825547bc4ec2400eb8c5b569be0c46b77c1896d833867f326dd4c232bff16811
|
7
|
+
data.tar.gz: 7e56cc69b7ff661623f2e206cccb40e2fdf7d1e25ee9ab9104a5c88c2d9e8ab148ed74e3d89599b2b0f420430d4e4c0d025204186a568d8b33bc4890cec518c9
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
-
## [1.
|
3
|
+
## [1.8.0](https://github.com/craigulliott/pg_spec_helper/compare/v1.7.0...v1.8.0) (2023-08-06)
|
4
|
+
|
5
|
+
|
6
|
+
### Features
|
7
|
+
|
8
|
+
* using function_* instead of routine_* when dealing with functions, because routine_* implies these could be procedures too ([9c5f0c2](https://github.com/craigulliott/pg_spec_helper/commit/9c5f0c267f377731ed82d764a4f866de0b4525ee))
|
4
9
|
|
5
10
|
|
6
11
|
### Bug Fixes
|
@@ -16,7 +16,7 @@ class PGSpecHelper
|
|
16
16
|
end
|
17
17
|
|
18
18
|
# create a postgres trigger
|
19
|
-
def create_trigger schema_name, table_name, name, action_timing:, event_manipulation:, action_orientation:,
|
19
|
+
def create_trigger schema_name, table_name, name, action_timing:, event_manipulation:, action_orientation:, function_schema:, function_name:, action_condition: nil, action_reference_old_table: nil, action_reference_new_table: nil
|
20
20
|
unless [:insert, :delete, :update].include? event_manipulation
|
21
21
|
raise UnexpectedEventManipulationError, event_manipulation
|
22
22
|
end
|
@@ -53,7 +53,7 @@ class PGSpecHelper
|
|
53
53
|
#{timing_sql} ON #{schema_name}.#{table_name} #{temp_tables_sql}
|
54
54
|
FOR EACH #{action_orientation}
|
55
55
|
#{condition_sql}
|
56
|
-
EXECUTE
|
56
|
+
EXECUTE FUNCTION #{function_schema}.#{function_name}();
|
57
57
|
SQL
|
58
58
|
end
|
59
59
|
|