rake-db 2.22.45 → 2.23.0
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.
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -177,7 +177,9 @@ const encodeColumnDefault = (def, values, column) => {
|
|
|
177
177
|
if (isRawSQL(def)) {
|
|
178
178
|
return def.toSQL({ values });
|
|
179
179
|
} else {
|
|
180
|
-
return escapeForMigration(
|
|
180
|
+
return escapeForMigration(
|
|
181
|
+
(column == null ? void 0 : column.data.encode) ? column.data.encode(def) : def
|
|
182
|
+
);
|
|
181
183
|
}
|
|
182
184
|
}
|
|
183
185
|
return null;
|