drizzle-kit 1.0.0-beta.5-1d78369 → 1.0.0-beta.5-9372e8c
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/bin.cjs +4 -2
- package/package.json +1 -1
package/bin.cjs
CHANGED
|
@@ -44746,8 +44746,10 @@ var init_drizzle6 = __esm({
|
|
|
44746
44746
|
}
|
|
44747
44747
|
for (const column11 of columns) {
|
|
44748
44748
|
const columnName = getColumnCasing(column11, casing2);
|
|
44749
|
-
const isPk = result2.pks.find(
|
|
44750
|
-
|
|
44749
|
+
const isPk = result2.pks.find(
|
|
44750
|
+
(it2) => it2.columns.includes(columnName) && it2.table === tableName && it2.schema === schema6
|
|
44751
|
+
) !== void 0;
|
|
44752
|
+
const notNull = column11.notNull || Boolean(isPk);
|
|
44751
44753
|
const identity = column11.identity;
|
|
44752
44754
|
const generated = column11.generated ? {
|
|
44753
44755
|
as: (0, import_drizzle_orm5.is)(column11.generated.as, import_drizzle_orm5.SQL) ? dialect5.sqlToQuery(column11.generated.as).sql : typeof column11.generated.as === "function" ? dialect5.sqlToQuery(column11.generated.as()).sql : `${column11.generated.as}`,
|