drizzle-kit 0.22.4 → 0.22.5
Sign up to get free protection for your applications and to get access to all the features.
- package/bin.cjs +4 -4
- package/package.json +1 -1
- package/payload.js +3 -3
- package/payload.mjs +3 -3
package/bin.cjs
CHANGED
@@ -9058,11 +9058,11 @@ var init_pgSchema = __esm({
|
|
9058
9058
|
},
|
9059
9059
|
squashIdxPush: (idx) => {
|
9060
9060
|
index2.parse(idx);
|
9061
|
-
return `${idx.name};${idx.columns.map((c) => `${c.isExpression ? "" : c.expression}
|
9061
|
+
return `${idx.name};${idx.columns.map((c) => `${c.isExpression ? "" : c.expression}--${c.asc}--${c.nulls}`).join(",,")};${idx.isUnique};${idx.method};${JSON.stringify(idx.with)}`;
|
9062
9062
|
},
|
9063
9063
|
unsquashIdxPush: (input) => {
|
9064
9064
|
const [name, columnsString, isUnique, method, idxWith] = input.split(";");
|
9065
|
-
const columnString = columnsString.split("
|
9065
|
+
const columnString = columnsString.split("--");
|
9066
9066
|
const columns = [];
|
9067
9067
|
for (const column7 of columnString) {
|
9068
9068
|
const [expression, asc, nulls, opclass] = column7.split(",");
|
@@ -23742,7 +23742,7 @@ ${BREAKPOINT}ALTER TABLE ${tableNameWithSchema} ADD CONSTRAINT ${statement.newCo
|
|
23742
23742
|
} = statement.data;
|
23743
23743
|
const indexPart = isUnique ? "UNIQUE INDEX" : "INDEX";
|
23744
23744
|
const value = columns.map(
|
23745
|
-
(it) => `${it.expression}${it.opclass ? ` ${it.opclass}` : it.asc ? "" : " DESC"}${it.asc && it.nulls && it.nulls === "last" || it.opclass ? "" : ` NULLS ${it.nulls.toUpperCase()}`}`
|
23745
|
+
(it) => `${it.isExpression ? it.expression : `"${it.expression}"`}${it.opclass ? ` ${it.opclass}` : it.asc ? "" : " DESC"}${it.asc && it.nulls && it.nulls === "last" || it.opclass ? "" : ` NULLS ${it.nulls.toUpperCase()}`}`
|
23746
23746
|
).join(",");
|
23747
23747
|
const tableNameWithSchema = statement.schema ? `"${statement.schema}"."${statement.tableName}"` : `"${statement.tableName}"`;
|
23748
23748
|
function reverseLogic(mappedWith) {
|
@@ -129502,7 +129502,7 @@ var printVersions = async () => {
|
|
129502
129502
|
var versions = async () => {
|
129503
129503
|
const { npmVersion } = await ormCoreVersions();
|
129504
129504
|
const ormVersion = npmVersion ? `drizzle-orm: v${npmVersion}` : "";
|
129505
|
-
const envVersion = "0.22.
|
129505
|
+
const envVersion = "0.22.5";
|
129506
129506
|
const kitVersion = envVersion ? `v${envVersion}` : "--";
|
129507
129507
|
const versions2 = `drizzle-kit: ${kitVersion}
|
129508
129508
|
${ormVersion}`;
|
package/package.json
CHANGED
package/payload.js
CHANGED
@@ -15191,11 +15191,11 @@ var init_pgSchema = __esm({
|
|
15191
15191
|
},
|
15192
15192
|
squashIdxPush: (idx) => {
|
15193
15193
|
index2.parse(idx);
|
15194
|
-
return `${idx.name};${idx.columns.map((c) => `${c.isExpression ? "" : c.expression}
|
15194
|
+
return `${idx.name};${idx.columns.map((c) => `${c.isExpression ? "" : c.expression}--${c.asc}--${c.nulls}`).join(",,")};${idx.isUnique};${idx.method};${JSON.stringify(idx.with)}`;
|
15195
15195
|
},
|
15196
15196
|
unsquashIdxPush: (input) => {
|
15197
15197
|
const [name2, columnsString, isUnique, method, idxWith] = input.split(";");
|
15198
|
-
const columnString = columnsString.split("
|
15198
|
+
const columnString = columnsString.split("--");
|
15199
15199
|
const columns = [];
|
15200
15200
|
for (const column4 of columnString) {
|
15201
15201
|
const [expression, asc2, nulls, opclass] = column4.split(",");
|
@@ -24359,7 +24359,7 @@ ${BREAKPOINT}ALTER TABLE ${tableNameWithSchema} ADD CONSTRAINT ${statement.newCo
|
|
24359
24359
|
} = statement.data;
|
24360
24360
|
const indexPart = isUnique ? "UNIQUE INDEX" : "INDEX";
|
24361
24361
|
const value = columns.map(
|
24362
|
-
(it) => `${it.expression}${it.opclass ? ` ${it.opclass}` : it.asc ? "" : " DESC"}${it.asc && it.nulls && it.nulls === "last" || it.opclass ? "" : ` NULLS ${it.nulls.toUpperCase()}`}`
|
24362
|
+
(it) => `${it.isExpression ? it.expression : `"${it.expression}"`}${it.opclass ? ` ${it.opclass}` : it.asc ? "" : " DESC"}${it.asc && it.nulls && it.nulls === "last" || it.opclass ? "" : ` NULLS ${it.nulls.toUpperCase()}`}`
|
24363
24363
|
).join(",");
|
24364
24364
|
const tableNameWithSchema = statement.schema ? `"${statement.schema}"."${statement.tableName}"` : `"${statement.tableName}"`;
|
24365
24365
|
function reverseLogic(mappedWith) {
|
package/payload.mjs
CHANGED
@@ -15197,11 +15197,11 @@ var init_pgSchema = __esm({
|
|
15197
15197
|
},
|
15198
15198
|
squashIdxPush: (idx) => {
|
15199
15199
|
index2.parse(idx);
|
15200
|
-
return `${idx.name};${idx.columns.map((c) => `${c.isExpression ? "" : c.expression}
|
15200
|
+
return `${idx.name};${idx.columns.map((c) => `${c.isExpression ? "" : c.expression}--${c.asc}--${c.nulls}`).join(",,")};${idx.isUnique};${idx.method};${JSON.stringify(idx.with)}`;
|
15201
15201
|
},
|
15202
15202
|
unsquashIdxPush: (input) => {
|
15203
15203
|
const [name2, columnsString, isUnique, method, idxWith] = input.split(";");
|
15204
|
-
const columnString = columnsString.split("
|
15204
|
+
const columnString = columnsString.split("--");
|
15205
15205
|
const columns = [];
|
15206
15206
|
for (const column4 of columnString) {
|
15207
15207
|
const [expression, asc2, nulls, opclass] = column4.split(",");
|
@@ -24365,7 +24365,7 @@ ${BREAKPOINT}ALTER TABLE ${tableNameWithSchema} ADD CONSTRAINT ${statement.newCo
|
|
24365
24365
|
} = statement.data;
|
24366
24366
|
const indexPart = isUnique ? "UNIQUE INDEX" : "INDEX";
|
24367
24367
|
const value = columns.map(
|
24368
|
-
(it) => `${it.expression}${it.opclass ? ` ${it.opclass}` : it.asc ? "" : " DESC"}${it.asc && it.nulls && it.nulls === "last" || it.opclass ? "" : ` NULLS ${it.nulls.toUpperCase()}`}`
|
24368
|
+
(it) => `${it.isExpression ? it.expression : `"${it.expression}"`}${it.opclass ? ` ${it.opclass}` : it.asc ? "" : " DESC"}${it.asc && it.nulls && it.nulls === "last" || it.opclass ? "" : ` NULLS ${it.nulls.toUpperCase()}`}`
|
24369
24369
|
).join(",");
|
24370
24370
|
const tableNameWithSchema = statement.schema ? `"${statement.schema}"."${statement.tableName}"` : `"${statement.tableName}"`;
|
24371
24371
|
function reverseLogic(mappedWith) {
|