dynamic_migrations 3.6.6 → 3.6.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/dynamic_migrations/active_record/migrators/column.rb +1 -1
- data/lib/dynamic_migrations/active_record/migrators/enum.rb +1 -1
- data/lib/dynamic_migrations/active_record/migrators/foreign_key_constraint.rb +1 -1
- data/lib/dynamic_migrations/active_record/migrators/function.rb +1 -1
- data/lib/dynamic_migrations/active_record/migrators/index.rb +1 -1
- data/lib/dynamic_migrations/active_record/migrators/table.rb +1 -1
- data/lib/dynamic_migrations/active_record/migrators/trigger.rb +1 -1
- data/lib/dynamic_migrations/active_record/migrators/unique_constraint.rb +1 -1
- data/lib/dynamic_migrations/active_record/migrators/validation.rb +1 -1
- data/lib/dynamic_migrations/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: 595c87d8edaa9e8a2d3d8f3676e4383b1c5c3fd59223051d5541855e5117fa61
|
4
|
+
data.tar.gz: df3dfbff71ec825947dd7d8a89fd8a163291fbdf5ef58ffa95b15b057ff028d9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 346ea3c2425e136487200f521b9669d1cd4ec3646f64113340b2bf487416b48226c68d4b32e5008dca9405f75dd7c50020edbe9caa33e4fcd2c676f61f09fbbf
|
7
|
+
data.tar.gz: bfc5f568840046e813f0c04b47a54b50be0c4053ae2f8dd94cd5f59c86c42505aeb902d4a8eb85004b5aa0f37c922d25cac793d87a20f467d32bc2730f51f3fc
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [3.6.7](https://github.com/craigulliott/dynamic_migrations/compare/v3.6.6...v3.6.7) (2023-09-13)
|
4
|
+
|
5
|
+
|
6
|
+
### Bug Fixes
|
7
|
+
|
8
|
+
* removing duplicate single quotes ([8d7eb44](https://github.com/craigulliott/dynamic_migrations/commit/8d7eb447fef0a702cacb37714905dcb85728a821))
|
9
|
+
* updating spec `quot` method to match active records implementation ([674a7d8](https://github.com/craigulliott/dynamic_migrations/commit/674a7d86bbf70ee8304ade2539344ed26ef2a650))
|
10
|
+
|
3
11
|
## [3.6.6](https://github.com/craigulliott/dynamic_migrations/compare/v3.6.5...v3.6.6) (2023-09-13)
|
4
12
|
|
5
13
|
|
@@ -5,7 +5,7 @@ module DynamicMigrations
|
|
5
5
|
# add a comment to the column
|
6
6
|
def set_column_comment table_name, column_name, comment
|
7
7
|
execute <<~SQL
|
8
|
-
COMMENT ON COLUMN #{schema_name}.#{table_name}.#{column_name} IS
|
8
|
+
COMMENT ON COLUMN #{schema_name}.#{table_name}.#{column_name} IS #{quote comment};
|
9
9
|
SQL
|
10
10
|
end
|
11
11
|
|
@@ -28,7 +28,7 @@ module DynamicMigrations
|
|
28
28
|
# add a comment to a enum
|
29
29
|
def set_enum_comment enum_name, comment
|
30
30
|
execute <<~SQL
|
31
|
-
COMMENT ON TYPE #{schema_name}.#{enum_name} IS
|
31
|
+
COMMENT ON TYPE #{schema_name}.#{enum_name} IS #{quote comment};
|
32
32
|
SQL
|
33
33
|
end
|
34
34
|
|
@@ -58,7 +58,7 @@ module DynamicMigrations
|
|
58
58
|
# add a comment to the foreign_key
|
59
59
|
def set_foreign_key_comment table_name, foreign_key_name, comment
|
60
60
|
execute <<~SQL
|
61
|
-
COMMENT ON CONSTRAINT #{foreign_key_name} ON #{schema_name}.#{table_name} IS
|
61
|
+
COMMENT ON CONSTRAINT #{foreign_key_name} ON #{schema_name}.#{table_name} IS #{quote comment};
|
62
62
|
SQL
|
63
63
|
end
|
64
64
|
|
@@ -78,7 +78,7 @@ module DynamicMigrations
|
|
78
78
|
# add a comment to a function
|
79
79
|
def set_function_comment function_name, comment
|
80
80
|
execute <<~SQL
|
81
|
-
COMMENT ON FUNCTION #{schema_name}.#{function_name} IS
|
81
|
+
COMMENT ON FUNCTION #{schema_name}.#{function_name} IS #{quote comment};
|
82
82
|
SQL
|
83
83
|
end
|
84
84
|
|
@@ -5,7 +5,7 @@ module DynamicMigrations
|
|
5
5
|
# add a comment to the table
|
6
6
|
def set_table_comment table_name, comment
|
7
7
|
execute <<~SQL
|
8
|
-
COMMENT ON TABLE #{schema_name}.#{table_name} IS
|
8
|
+
COMMENT ON TABLE #{schema_name}.#{table_name} IS #{quote comment};
|
9
9
|
SQL
|
10
10
|
end
|
11
11
|
|
@@ -94,7 +94,7 @@ module DynamicMigrations
|
|
94
94
|
|
95
95
|
def set_trigger_comment table_name, trigger_name, comment
|
96
96
|
execute <<~SQL
|
97
|
-
COMMENT ON TRIGGER #{trigger_name} ON #{schema_name}.#{table_name} IS
|
97
|
+
COMMENT ON TRIGGER #{trigger_name} ON #{schema_name}.#{table_name} IS #{quote comment};
|
98
98
|
SQL
|
99
99
|
end
|
100
100
|
|
@@ -47,7 +47,7 @@ module DynamicMigrations
|
|
47
47
|
# add a comment to the unique_constraint
|
48
48
|
def set_unique_constraint_comment table_name, unique_constraint_name, comment
|
49
49
|
execute <<~SQL
|
50
|
-
COMMENT ON CONSTRAINT #{unique_constraint_name} ON #{schema_name}.#{table_name} IS
|
50
|
+
COMMENT ON CONSTRAINT #{unique_constraint_name} ON #{schema_name}.#{table_name} IS #{quote comment};
|
51
51
|
SQL
|
52
52
|
end
|
53
53
|
|
@@ -51,7 +51,7 @@ module DynamicMigrations
|
|
51
51
|
# add a comment to the validation
|
52
52
|
def set_validation_comment table_name, validation_name, comment
|
53
53
|
execute <<~SQL
|
54
|
-
COMMENT ON CONSTRAINT #{validation_name} ON #{schema_name}.#{table_name} IS
|
54
|
+
COMMENT ON CONSTRAINT #{validation_name} ON #{schema_name}.#{table_name} IS #{quote comment};
|
55
55
|
SQL
|
56
56
|
end
|
57
57
|
|