drizzle-kit 1.0.0-beta.2-0ff3a44 → 1.0.0-beta.2-3a98f3a
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/api-postgres.js +3 -3
- package/api-postgres.mjs +4 -3
- package/bin.cjs +3 -3
- package/package.json +1 -1
package/api-postgres.js
CHANGED
|
@@ -21952,7 +21952,7 @@ var init_drizzle2 = __esm({
|
|
|
21952
21952
|
};
|
|
21953
21953
|
unwrapColumn = (column8) => {
|
|
21954
21954
|
const { baseColumn, dimensions } = (0, import_drizzle_orm.is)(column8, import_pg_core2.PgArray) ? unwrapArray(column8) : { baseColumn: column8, dimensions: 0 };
|
|
21955
|
-
const isEnum = (0, import_drizzle_orm.is)(baseColumn, import_pg_core2.PgEnumColumn);
|
|
21955
|
+
const isEnum = (0, import_drizzle_orm.is)(baseColumn, import_pg_core2.PgEnumColumn) || (0, import_drizzle_orm.is)(baseColumn, import_pg_core2.PgEnumObjectColumn);
|
|
21956
21956
|
const typeSchema = isEnum ? baseColumn.enum.schema || "public" : null;
|
|
21957
21957
|
let sqlBaseType = baseColumn.getSQLType();
|
|
21958
21958
|
sqlBaseType = sqlBaseType.replace(", ", ",");
|
|
@@ -147387,8 +147387,8 @@ import { sql } from "drizzle-orm"
|
|
|
147387
147387
|
statement += it.nameExplicit ? ` name: "${it.name}"
|
|
147388
147388
|
` : "";
|
|
147389
147389
|
statement += ` })`;
|
|
147390
|
-
statement += it.onUpdate && it.onUpdate !== "NO ACTION" ? `.onUpdate("${it.onUpdate}")` : "";
|
|
147391
|
-
statement += it.onDelete && it.onDelete !== "NO ACTION" ? `.onDelete("${it.onDelete}")` : "";
|
|
147390
|
+
statement += it.onUpdate && it.onUpdate !== "NO ACTION" ? `.onUpdate("${it.onUpdate.toLowerCase()}")` : "";
|
|
147391
|
+
statement += it.onDelete && it.onDelete !== "NO ACTION" ? `.onDelete("${it.onDelete.toLowerCase()}")` : "";
|
|
147392
147392
|
statement += `,
|
|
147393
147393
|
`;
|
|
147394
147394
|
});
|
package/api-postgres.mjs
CHANGED
|
@@ -21941,6 +21941,7 @@ import {
|
|
|
21941
21941
|
PgArray,
|
|
21942
21942
|
PgDialect,
|
|
21943
21943
|
PgEnumColumn,
|
|
21944
|
+
PgEnumObjectColumn,
|
|
21944
21945
|
PgGeometry,
|
|
21945
21946
|
PgGeometryObject,
|
|
21946
21947
|
PgLineABC,
|
|
@@ -21988,7 +21989,7 @@ var init_drizzle2 = __esm({
|
|
|
21988
21989
|
};
|
|
21989
21990
|
unwrapColumn = (column8) => {
|
|
21990
21991
|
const { baseColumn, dimensions } = is(column8, PgArray) ? unwrapArray(column8) : { baseColumn: column8, dimensions: 0 };
|
|
21991
|
-
const isEnum = is(baseColumn, PgEnumColumn);
|
|
21992
|
+
const isEnum = is(baseColumn, PgEnumColumn) || is(baseColumn, PgEnumObjectColumn);
|
|
21992
21993
|
const typeSchema = isEnum ? baseColumn.enum.schema || "public" : null;
|
|
21993
21994
|
let sqlBaseType = baseColumn.getSQLType();
|
|
21994
21995
|
sqlBaseType = sqlBaseType.replace(", ", ",");
|
|
@@ -147420,8 +147421,8 @@ import { sql } from "drizzle-orm"
|
|
|
147420
147421
|
statement += it.nameExplicit ? ` name: "${it.name}"
|
|
147421
147422
|
` : "";
|
|
147422
147423
|
statement += ` })`;
|
|
147423
|
-
statement += it.onUpdate && it.onUpdate !== "NO ACTION" ? `.onUpdate("${it.onUpdate}")` : "";
|
|
147424
|
-
statement += it.onDelete && it.onDelete !== "NO ACTION" ? `.onDelete("${it.onDelete}")` : "";
|
|
147424
|
+
statement += it.onUpdate && it.onUpdate !== "NO ACTION" ? `.onUpdate("${it.onUpdate.toLowerCase()}")` : "";
|
|
147425
|
+
statement += it.onDelete && it.onDelete !== "NO ACTION" ? `.onDelete("${it.onDelete.toLowerCase()}")` : "";
|
|
147425
147426
|
statement += `,
|
|
147426
147427
|
`;
|
|
147427
147428
|
});
|
package/bin.cjs
CHANGED
|
@@ -37997,7 +37997,7 @@ var init_drizzle2 = __esm({
|
|
|
37997
37997
|
};
|
|
37998
37998
|
unwrapColumn = (column12) => {
|
|
37999
37999
|
const { baseColumn, dimensions } = (0, import_drizzle_orm.is)(column12, import_pg_core2.PgArray) ? unwrapArray(column12) : { baseColumn: column12, dimensions: 0 };
|
|
38000
|
-
const isEnum = (0, import_drizzle_orm.is)(baseColumn, import_pg_core2.PgEnumColumn);
|
|
38000
|
+
const isEnum = (0, import_drizzle_orm.is)(baseColumn, import_pg_core2.PgEnumColumn) || (0, import_drizzle_orm.is)(baseColumn, import_pg_core2.PgEnumObjectColumn);
|
|
38001
38001
|
const typeSchema = isEnum ? baseColumn.enum.schema || "public" : null;
|
|
38002
38002
|
let sqlBaseType = baseColumn.getSQLType();
|
|
38003
38003
|
sqlBaseType = sqlBaseType.replace(", ", ",");
|
|
@@ -168693,8 +168693,8 @@ import { sql } from "drizzle-orm"
|
|
|
168693
168693
|
statement += it2.nameExplicit ? ` name: "${it2.name}"
|
|
168694
168694
|
` : "";
|
|
168695
168695
|
statement += ` })`;
|
|
168696
|
-
statement += it2.onUpdate && it2.onUpdate !== "NO ACTION" ? `.onUpdate("${it2.onUpdate}")` : "";
|
|
168697
|
-
statement += it2.onDelete && it2.onDelete !== "NO ACTION" ? `.onDelete("${it2.onDelete}")` : "";
|
|
168696
|
+
statement += it2.onUpdate && it2.onUpdate !== "NO ACTION" ? `.onUpdate("${it2.onUpdate.toLowerCase()}")` : "";
|
|
168697
|
+
statement += it2.onDelete && it2.onDelete !== "NO ACTION" ? `.onDelete("${it2.onDelete.toLowerCase()}")` : "";
|
|
168698
168698
|
statement += `,
|
|
168699
168699
|
`;
|
|
168700
168700
|
});
|