drizzle-kit 1.0.0-beta.5-1d78369 → 1.0.0-beta.5-a7212e7
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 +10 -8
- 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}`,
|
|
@@ -180710,7 +180712,7 @@ var preparePushConfig = async (options, from) => {
|
|
|
180710
180712
|
credentials: parsed2.data,
|
|
180711
180713
|
casing: config.casing,
|
|
180712
180714
|
filters,
|
|
180713
|
-
explain: false
|
|
180715
|
+
explain: options.explain ?? false
|
|
180714
180716
|
};
|
|
180715
180717
|
}
|
|
180716
180718
|
if (config.dialect === "singlestore") {
|
|
@@ -180726,7 +180728,7 @@ var preparePushConfig = async (options, from) => {
|
|
|
180726
180728
|
force: options.force ?? false,
|
|
180727
180729
|
credentials: parsed2.data,
|
|
180728
180730
|
filters,
|
|
180729
|
-
explain: false
|
|
180731
|
+
explain: options.explain ?? false
|
|
180730
180732
|
};
|
|
180731
180733
|
}
|
|
180732
180734
|
if (config.dialect === "sqlite") {
|
|
@@ -180743,7 +180745,7 @@ var preparePushConfig = async (options, from) => {
|
|
|
180743
180745
|
credentials: parsed2.data,
|
|
180744
180746
|
casing: config.casing,
|
|
180745
180747
|
filters,
|
|
180746
|
-
explain: false
|
|
180748
|
+
explain: options.explain ?? false
|
|
180747
180749
|
};
|
|
180748
180750
|
}
|
|
180749
180751
|
if (config.dialect === "turso") {
|
|
@@ -180760,7 +180762,7 @@ var preparePushConfig = async (options, from) => {
|
|
|
180760
180762
|
credentials: parsed2.data,
|
|
180761
180763
|
casing: config.casing,
|
|
180762
180764
|
filters,
|
|
180763
|
-
explain: false
|
|
180765
|
+
explain: options.explain ?? false
|
|
180764
180766
|
};
|
|
180765
180767
|
}
|
|
180766
180768
|
if (config.dialect === "gel") {
|
|
@@ -180780,7 +180782,7 @@ var preparePushConfig = async (options, from) => {
|
|
|
180780
180782
|
credentials: parsed2.data,
|
|
180781
180783
|
casing: config.casing,
|
|
180782
180784
|
filters,
|
|
180783
|
-
explain: false
|
|
180785
|
+
explain: options.explain ?? false
|
|
180784
180786
|
};
|
|
180785
180787
|
}
|
|
180786
180788
|
if (config.dialect === "cockroach") {
|
|
@@ -180797,7 +180799,7 @@ var preparePushConfig = async (options, from) => {
|
|
|
180797
180799
|
credentials: parsed2.data,
|
|
180798
180800
|
casing: config.casing,
|
|
180799
180801
|
filters,
|
|
180800
|
-
explain: false
|
|
180802
|
+
explain: options.explain ?? false
|
|
180801
180803
|
};
|
|
180802
180804
|
}
|
|
180803
180805
|
if (config.dialect === "duckdb") {
|