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