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.js
CHANGED
|
@@ -2515,7 +2515,7 @@ const generate = async (options, config, args, afterPull) => {
|
|
|
2515
2515
|
const [adapter] = adapters;
|
|
2516
2516
|
const currentSchema = adapter.schema ?? "public";
|
|
2517
2517
|
const db = await getDbFromConfig(config, dbPath);
|
|
2518
|
-
const { columnTypes, internal } = db.$
|
|
2518
|
+
const { columnTypes, internal } = db.$qb;
|
|
2519
2519
|
const codeItems = await getActualItems(
|
|
2520
2520
|
db,
|
|
2521
2521
|
currentSchema,
|
|
@@ -2600,7 +2600,7 @@ const getDbFromConfig = async (config, dbPath) => {
|
|
|
2600
2600
|
url.pathToFileURL(path.resolve(config.basePath, dbPath)).toString()
|
|
2601
2601
|
);
|
|
2602
2602
|
const db = module[config.dbExportedAs ?? "db"];
|
|
2603
|
-
if (!db?.$
|
|
2603
|
+
if (!db?.$qb) {
|
|
2604
2604
|
throw new Error(
|
|
2605
2605
|
`Unable to import OrchidORM instance as ${config.dbExportedAs ?? "db"} from ${config.dbPath}`
|
|
2606
2606
|
);
|