dynamic_migrations 3.6.8 → 3.6.9
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 +4 -4
- data/CHANGELOG.md +7 -0
- data/lib/dynamic_migrations/postgres/server/database/schema/enum.rb +4 -0
- data/lib/dynamic_migrations/postgres/server/database/schema/table/column.rb +2 -2
- data/lib/dynamic_migrations/version.rb +1 -1
- data/sig/dynamic_migrations/postgres/server/database/schema/enum.rbs +1 -0
- 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: eda59bc82b8accf553a95dabc66fdb1d59ea68750cb4318b2ee970d62d5b679f
|
4
|
+
data.tar.gz: faaf288de33ee1a6d419be2148a4cc7ec5f76bcd05260d5419b82af7fd256f51
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 85bb27898ab75f4815f7d08b6c7cdd27174f7bbb850fb55d21dad082627077e175d26b87fa64aa3651d98a914e1719a81d0d72955b7b763ecb5fe2ee5e93c9a1
|
7
|
+
data.tar.gz: a2bb9765ad753949c7f8db6640ca41046f7d1e946d0ed05211cce922d1f0c8b63dc4111183d1ab556c8f4b01278f3f83b2a39fd45c49dd50f718e32e8e617bbb
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,12 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [3.6.9](https://github.com/craigulliott/dynamic_migrations/compare/v3.6.8...v3.6.9) (2023-09-13)
|
4
|
+
|
5
|
+
|
6
|
+
### Bug Fixes
|
7
|
+
|
8
|
+
* enum name as a data type should include the schema name ([7658d14](https://github.com/craigulliott/dynamic_migrations/commit/7658d1482b7e50bcce11268d8121ee59ae194fa3))
|
9
|
+
|
3
10
|
## [3.6.8](https://github.com/craigulliott/dynamic_migrations/compare/v3.6.7...v3.6.8) (2023-09-13)
|
4
11
|
|
5
12
|
|
@@ -50,8 +50,8 @@ module DynamicMigrations
|
|
50
50
|
unless enum.is_a? Enum
|
51
51
|
raise UnexpectedEnumError, "#{enum} is not a valid enum"
|
52
52
|
end
|
53
|
-
unless @data_type == enum.
|
54
|
-
raise UnexpectedEnumError, "enum `#{enum.
|
53
|
+
unless @data_type == enum.full_name || @data_type == "#{enum.full_name}[]"
|
54
|
+
raise UnexpectedEnumError, "enum `#{enum.full_name}` does not match this column's data type `#{@data_type}`"
|
55
55
|
end
|
56
56
|
@enum = enum
|
57
57
|
end
|
@@ -12,6 +12,7 @@ module DynamicMigrations
|
|
12
12
|
attr_reader values: Array[Symbol]
|
13
13
|
attr_reader description: String?
|
14
14
|
def initialize: (database_or_configuration source, Schema schema, Symbol name, Array[Symbol] values, ?description: String?) -> void
|
15
|
+
def full_name: -> Symbol
|
15
16
|
def has_description?: -> bool
|
16
17
|
def differences_descriptions: (Enum other_enum) -> Array[String]
|
17
18
|
|