rake-db 2.3.44 → 2.4.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.d.ts +241 -239
- package/dist/index.js +35 -34
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -3
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { quote, getRaw, EnumColumn, columnTypes, getColumnTypes, getTableData, ColumnType, resetTableData, TransactionAdapter, logParamToLogObject, createDb as createDb$1, Adapter, columnsByType, instantiateColumn, codeToString, primaryKeyToCode, indexToCode, foreignKeyToCode, TimestampColumn, foreignKeyArgsToCode } from 'pqb';
|
|
2
|
+
import { singleQuote, isRaw, toArray, emptyObject, addCode, quoteObjectKey } from 'orchid-core';
|
|
2
3
|
import path from 'path';
|
|
3
4
|
import { readdir, mkdir, writeFile } from 'fs/promises';
|
|
4
5
|
import prompts from 'prompts';
|
|
@@ -1295,7 +1296,7 @@ const processMigration = async (db, up, file, config, options, appCodeUpdaterCac
|
|
|
1295
1296
|
try {
|
|
1296
1297
|
await config.import(file.path);
|
|
1297
1298
|
} catch (err) {
|
|
1298
|
-
if (err.code
|
|
1299
|
+
if (err.code !== "ERR_UNSUPPORTED_ESM_URL_SCHEME")
|
|
1299
1300
|
throw err;
|
|
1300
1301
|
await config.import(url.pathToFileURL(file.path).pathname);
|
|
1301
1302
|
}
|