exwiw 0.4.4 → 0.4.5
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 +6 -0
- data/lib/exwiw/adapter/mysql_adapter.rb +3 -3
- data/lib/exwiw/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: d0b715388723c6553f40418e8f4cc9bcc0d2252b819acef3d80e3d17c92aad7d
|
|
4
|
+
data.tar.gz: e3384bdfb99923cf0081d09f5c85b34f798b013760defec9e503dccd9f7153d7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5bad68b5a322e0e8ef31264ab48bf1143c0ac0ec6fba2313a9304404d586e1b098cbf973a9623c90ba47f52a6ecf30e90c0ce5a13ec0affa22620a765f52f336
|
|
7
|
+
data.tar.gz: 7cd6b095feb5ad7907bda22f24160ef65479747d84aaac7816a3a91fdfb68b962f2e7a4f30acb81591a9f90c961a9720a4f94db9fe59622c20892912cc6852ac
|
data/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
## [Unreleased]
|
|
4
4
|
|
|
5
|
+
## [0.4.5] - 2026-06-08
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
|
|
9
|
+
- MySQL: INSERT statements now backtick-quote table and column names. Previously, columns whose name is a MySQL reserved word (e.g. `key` in `active_storage_blobs`) caused syntax errors on restore. ([#83](https://github.com/heyinc/exwiw/pull/83))
|
|
10
|
+
|
|
5
11
|
## [0.4.4] - 2026-06-05
|
|
6
12
|
|
|
7
13
|
### Fixed
|
|
@@ -111,10 +111,10 @@ module Exwiw
|
|
|
111
111
|
values = value_list.join(",\n")
|
|
112
112
|
|
|
113
113
|
if table.rails_managed?
|
|
114
|
-
"INSERT INTO
|
|
114
|
+
"INSERT INTO `#{table_name}` VALUES\n#{values};"
|
|
115
115
|
else
|
|
116
|
-
column_names = table.columns.map
|
|
117
|
-
"INSERT INTO
|
|
116
|
+
column_names = table.columns.map { |c| "`#{c.name}`" }.join(', ')
|
|
117
|
+
"INSERT INTO `#{table_name}` (#{column_names}) VALUES\n#{values};"
|
|
118
118
|
end
|
|
119
119
|
end
|
|
120
120
|
|
data/lib/exwiw/version.rb
CHANGED