rake-db 2.22.46 → 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.js
CHANGED
|
@@ -179,7 +179,9 @@ const encodeColumnDefault = (def, values, column) => {
|
|
|
179
179
|
if (orchidCore.isRawSQL(def)) {
|
|
180
180
|
return def.toSQL({ values });
|
|
181
181
|
} else {
|
|
182
|
-
return pqb.escapeForMigration(
|
|
182
|
+
return pqb.escapeForMigration(
|
|
183
|
+
(column == null ? void 0 : column.data.encode) ? column.data.encode(def) : def
|
|
184
|
+
);
|
|
183
185
|
}
|
|
184
186
|
}
|
|
185
187
|
return null;
|