pg_spec_helper 1.7.1 → 1.7.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/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: 42c708c2bff866bb4100eaf6b9593e758b6b67b4173ba0640b82c77982abe69b
|
4
|
+
data.tar.gz: 9bbf51dfb4d77682e5f03caa5d847f52aa5cb48462a5e3e3a66353e928013e6f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4ccd6352ca381b3859b8b7df4e4196c22786f2781f47eeed41141a9b7bef79b148a8df898f2c759edb18a0156a3b635275b5aba7161549b263ebc76cb7ae697b
|
7
|
+
data.tar.gz: 8711223fc8b80e65638a8dc457349d6b485a778284459f3070af753e4ecca0e60ccebe6afd48ef9a3fb1fcd1ccd7d2af2d2733b5245a2df2eb0d6f61ebd18174
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,12 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [1.7.2](https://github.com/craigulliott/pg_spec_helper/compare/v1.7.1...v1.7.2) (2023-08-06)
|
4
|
+
|
5
|
+
|
6
|
+
### Bug Fixes
|
7
|
+
|
8
|
+
* using function_* instead of routine_* when dealing with functions, because routine_* implies these could be procedures too ([9c23567](https://github.com/craigulliott/pg_spec_helper/commit/9c2356766ce858d432d1ea32214de767ba6365f5))
|
9
|
+
|
3
10
|
## [1.7.1](https://github.com/craigulliott/pg_spec_helper/compare/v1.7.0...v1.7.1) (2023-08-06)
|
4
11
|
|
5
12
|
|
@@ -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
|
|