rake-db 2.20.16 → 2.20.18
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.d.ts +1 -1
- package/dist/index.js +7 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -3170,7 +3170,7 @@ const migrationConfigDefaults = {
|
|
|
3170
3170
|
}
|
|
3171
3171
|
};
|
|
3172
3172
|
const processRakeDbConfig = (config) => {
|
|
3173
|
-
var _a
|
|
3173
|
+
var _a;
|
|
3174
3174
|
const result = __spreadValues$4(__spreadValues$4({}, migrationConfigDefaults), config);
|
|
3175
3175
|
if (!result.recurrentPath) {
|
|
3176
3176
|
result.recurrentPath = path.join(result.migrationsPath, "recurrent");
|
|
@@ -3206,13 +3206,13 @@ const processRakeDbConfig = (config) => {
|
|
|
3206
3206
|
if ("recurrentPath" in result && !path.isAbsolute(result.recurrentPath)) {
|
|
3207
3207
|
result.recurrentPath = path.resolve(result.basePath, result.recurrentPath);
|
|
3208
3208
|
}
|
|
3209
|
-
if ("baseTable" in config) {
|
|
3210
|
-
const
|
|
3211
|
-
result.columnTypes =
|
|
3212
|
-
if (
|
|
3209
|
+
if ("baseTable" in config && config.baseTable) {
|
|
3210
|
+
const { types, snakeCase, language } = config.baseTable.prototype;
|
|
3211
|
+
result.columnTypes = types || makeColumnTypes(defaultSchemaConfig);
|
|
3212
|
+
if (snakeCase)
|
|
3213
3213
|
result.snakeCase = true;
|
|
3214
|
-
if (
|
|
3215
|
-
result.language =
|
|
3214
|
+
if (language)
|
|
3215
|
+
result.language = language;
|
|
3216
3216
|
} else {
|
|
3217
3217
|
const ct = "columnTypes" in config && config.columnTypes;
|
|
3218
3218
|
result.columnTypes = (typeof ct === "function" ? ct(
|