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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d55b74ca5d593d1eb9b5f7709f9f5d5e1de5c2d5d13ef7e3073a68f79ff9d8e3
4
- data.tar.gz: 8fa0077921bff51558769231e26f050bb6818d908a137e76c1ae566b622216c3
3
+ metadata.gz: 595c87d8edaa9e8a2d3d8f3676e4383b1c5c3fd59223051d5541855e5117fa61
4
+ data.tar.gz: df3dfbff71ec825947dd7d8a89fd8a163291fbdf5ef58ffa95b15b057ff028d9
5
5
  SHA512:
6
- metadata.gz: 588d41a319f45fcfba3c7708adf33edf8b3d1e8adf4f82d222f4fcaf4842b5c98607efa4db7033f8c42df8ab3d9796d32a3f5216634a7b69bd616b022e285d97
7
- data.tar.gz: 5144499575a152f2251a218b7033c2190d00f247ef5e864215db2b7f1992dd3c21399e65cb102db8d969b8eb08913d2bc0c4d54610f45fd4091b9b3450ee4199
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 '#{quote comment}';
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 '#{quote comment}';
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 '#{quote comment}';
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 '#{quote comment}';
81
+ COMMENT ON FUNCTION #{schema_name}.#{function_name} IS #{quote comment};
82
82
  SQL
83
83
  end
84
84
 
@@ -8,7 +8,7 @@ module DynamicMigrations
8
8
  # index is relate to
9
9
  def set_index_comment table_name, index_name, comment
10
10
  execute <<~SQL
11
- COMMENT ON INDEX #{index_name} IS '#{quote comment}';
11
+ COMMENT ON INDEX #{index_name} IS #{quote comment};
12
12
  SQL
13
13
  end
14
14
 
@@ -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 '#{quote comment}';
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 '#{quote comment}';
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 '#{quote comment}';
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 '#{quote comment}';
54
+ COMMENT ON CONSTRAINT #{validation_name} ON #{schema_name}.#{table_name} IS #{quote comment};
55
55
  SQL
56
56
  end
57
57
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DynamicMigrations
4
- VERSION = "3.6.6"
4
+ VERSION = "3.6.7"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dynamic_migrations
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.6.6
4
+ version: 3.6.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Craig Ulliott