orchid-orm 1.28.2 → 1.28.4
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/migrations.js +9 -7
- package/dist/migrations.js.map +1 -1
- package/dist/migrations.mjs +9 -7
- package/dist/migrations.mjs.map +1 -1
- package/package.json +4 -4
package/dist/migrations.mjs
CHANGED
|
@@ -2421,18 +2421,20 @@ const processHasAndBelongsToManyColumn = (column, habtmTables, codeItems) => {
|
|
|
2421
2421
|
const column2 = Object.create(joinTable.shape[key]);
|
|
2422
2422
|
column2.data = __spreadProps$1(__spreadValues$1({}, column2.data), {
|
|
2423
2423
|
identity: void 0,
|
|
2424
|
-
|
|
2424
|
+
primaryKey: void 0,
|
|
2425
2425
|
default: void 0
|
|
2426
2426
|
});
|
|
2427
2427
|
shape[key] = column2;
|
|
2428
2428
|
}
|
|
2429
2429
|
joinTable.shape = shape;
|
|
2430
|
-
joinTable.internal
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2430
|
+
joinTable.internal = __spreadProps$1(__spreadValues$1({}, joinTable.internal), {
|
|
2431
|
+
tableData: {
|
|
2432
|
+
primaryKey: {
|
|
2433
|
+
columns: Object.keys(shape)
|
|
2434
|
+
}
|
|
2435
|
+
},
|
|
2436
|
+
noPrimaryKey: false
|
|
2437
|
+
});
|
|
2436
2438
|
codeItems.tables.push(joinTable);
|
|
2437
2439
|
return;
|
|
2438
2440
|
};
|