orchid-orm 1.50.5 → 1.51.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 +6 -6
- package/dist/index.js +9 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -7
- package/dist/index.mjs.map +1 -1
- package/dist/migrations.js +2 -2
- package/dist/migrations.js.map +1 -1
- package/dist/migrations.mjs +2 -2
- package/dist/migrations.mjs.map +1 -1
- package/package.json +6 -6
package/dist/migrations.mjs
CHANGED
|
@@ -2514,7 +2514,7 @@ const generate = async (options, config, args, afterPull) => {
|
|
|
2514
2514
|
const [adapter] = adapters;
|
|
2515
2515
|
const currentSchema = adapter.schema ?? "public";
|
|
2516
2516
|
const db = await getDbFromConfig(config, dbPath);
|
|
2517
|
-
const { columnTypes, internal } = db.$
|
|
2517
|
+
const { columnTypes, internal } = db.$qb;
|
|
2518
2518
|
const codeItems = await getActualItems(
|
|
2519
2519
|
db,
|
|
2520
2520
|
currentSchema,
|
|
@@ -2599,7 +2599,7 @@ const getDbFromConfig = async (config, dbPath) => {
|
|
|
2599
2599
|
pathToFileURL(path.resolve(config.basePath, dbPath)).toString()
|
|
2600
2600
|
);
|
|
2601
2601
|
const db = module[config.dbExportedAs ?? "db"];
|
|
2602
|
-
if (!db?.$
|
|
2602
|
+
if (!db?.$qb) {
|
|
2603
2603
|
throw new Error(
|
|
2604
2604
|
`Unable to import OrchidORM instance as ${config.dbExportedAs ?? "db"} from ${config.dbPath}`
|
|
2605
2605
|
);
|