dynamic_migrations 3.6.11 → 3.6.12
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 79b80c950a523a7f70c930e8c86774fa64009ae689f5164de3320dc8d55e4238
|
4
|
+
data.tar.gz: 649f3e0f23d676e97b8cf3c8389875ae2127701eb405c7c8947bf19de076b7f2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 94c1280b7c62a39f8337d1093731625b22049eab02b642f17a9c8d1e7f067ef90cabb1dcabda980acde0eb38639ddbd1d30c9b740d85535d0250295e032b2983
|
7
|
+
data.tar.gz: '0478e668cf87739da754981dd2be1acd6a21cdfb3ef41609043c12915a455a04ccf99f31e46b3d0a5630002a59ba6b085f65381a86ed1e4d17eeaa796e70b418'
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,12 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [3.6.12](https://github.com/craigulliott/dynamic_migrations/compare/v3.6.11...v3.6.12) (2023-09-13)
|
4
|
+
|
5
|
+
|
6
|
+
### Bug Fixes
|
7
|
+
|
8
|
+
* removing unused argument for create_function migrator ([bdb2ad5](https://github.com/craigulliott/dynamic_migrations/commit/bdb2ad58ff0c5aa3520eb38ab0d16b823014ce6e))
|
9
|
+
|
3
10
|
## [3.6.11](https://github.com/craigulliott/dynamic_migrations/compare/v3.6.10...v3.6.11) (2023-09-13)
|
4
11
|
|
5
12
|
|
@@ -9,7 +9,7 @@ module DynamicMigrations
|
|
9
9
|
end
|
10
10
|
|
11
11
|
# create a postgres function
|
12
|
-
def create_function
|
12
|
+
def create_function function_name, comment: nil, &block
|
13
13
|
unless block
|
14
14
|
raise MissingFunctionBlockError, "create_function requires a block"
|
15
15
|
end
|
@@ -30,7 +30,7 @@ module DynamicMigrations
|
|
30
30
|
end
|
31
31
|
|
32
32
|
# update a postgres function
|
33
|
-
def update_function
|
33
|
+
def update_function function_name, comment: nil, &block
|
34
34
|
unless block
|
35
35
|
raise MissingFunctionBlockError, "create_function requires a block"
|
36
36
|
end
|
@@ -5,8 +5,8 @@ module DynamicMigrations
|
|
5
5
|
module ActiveRecord
|
6
6
|
module Migrators
|
7
7
|
module Function
|
8
|
-
def create_function: (Symbol
|
9
|
-
def update_function: (Symbol
|
8
|
+
def create_function: (Symbol function_name, ?comment: String?) -> void
|
9
|
+
def update_function: (Symbol function_name, ?comment: String?) -> void
|
10
10
|
def drop_function: (Symbol function_name) -> void
|
11
11
|
def set_function_comment: (Symbol function_name, String comment) -> void
|
12
12
|
def remove_function_comment: (Symbol function_name) -> void
|