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.
Files changed (2) hide show
  1. package/bin.cjs +4 -2
  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((it2) => it2.columns.includes(columnName));
44750
- const notNull = column11.notNull || Boolean(column11.generated) || Boolean(isPk);
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}`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "drizzle-kit",
3
- "version": "1.0.0-beta.5-1d78369",
3
+ "version": "1.0.0-beta.5-9372e8c",
4
4
  "homepage": "https://orm.drizzle.team",
5
5
  "keywords": [
6
6
  "drizzle",