drizzle-kit 0.21.2-9c89270 → 0.21.2-ae19ee7

Sign up to get free protection for your applications and to get access to all the features.
package/bin.cjs CHANGED
@@ -112422,7 +112422,7 @@ var init_sqlitePushUtils = __esm({
112422
112422
  ).find(
112423
112423
  (c) => SQLiteSquasher.unsquashIdx(c).columns.includes(statement.columnName)
112424
112424
  );
112425
- const columnIsPk = json2.tables[newTableName].columns[statement.columnName].primaryKey;
112425
+ const columnIsPk = json1.tables[newTableName].columns[statement.columnName].primaryKey;
112426
112426
  const columnIsPartOfFk = Object.values(
112427
112427
  json1.tables[newTableName].foreignKeys
112428
112428
  ).find(
@@ -114514,7 +114514,7 @@ var init_push = __esm({
114514
114514
  statements.squashedPrev,
114515
114515
  statements.meta
114516
114516
  );
114517
- if (verbose && statementsToExecute.length > 0) {
114517
+ if (verbose) {
114518
114518
  console.log();
114519
114519
  console.log(
114520
114520
  withStyle.warning("You are about to execute current statements:")
@@ -114555,15 +114555,10 @@ var init_push = __esm({
114555
114555
  process.exit(0);
114556
114556
  }
114557
114557
  }
114558
- if (statementsToExecute.length === 0) {
114559
- (0, import_hanji9.render)(`
114560
- [${source_default.blue("i")}] No changes detected`);
114561
- } else {
114562
- for (const dStmnt of statementsToExecute) {
114563
- await db2.run(dStmnt);
114564
- }
114565
- (0, import_hanji9.render)(`[${source_default.green("\u2713")}] Changes applied`);
114558
+ for (const dStmnt of statementsToExecute) {
114559
+ await db2.run(dStmnt);
114566
114560
  }
114561
+ (0, import_hanji9.render)(`[${source_default.green("\u2713")}] Changes applied`);
114567
114562
  }
114568
114563
  };
114569
114564
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "drizzle-kit",
3
- "version": "0.21.2-9c89270",
3
+ "version": "0.21.2-ae19ee7",
4
4
  "repository": "https://github.com/drizzle-team/drizzle-kit-mirror",
5
5
  "author": "Drizzle Team",
6
6
  "license": "MIT",
package/payload.js CHANGED
@@ -24009,7 +24009,7 @@ var logSuggestionsAndReturn = async (connection, statements, json1, json2, meta)
24009
24009
  ).find(
24010
24010
  (c) => SQLiteSquasher.unsquashIdx(c).columns.includes(statement.columnName)
24011
24011
  );
24012
- const columnIsPk = json2.tables[newTableName].columns[statement.columnName].primaryKey;
24012
+ const columnIsPk = json1.tables[newTableName].columns[statement.columnName].primaryKey;
24013
24013
  const columnIsPartOfFk = Object.values(
24014
24014
  json1.tables[newTableName].foreignKeys
24015
24015
  ).find(
package/payload.mjs CHANGED
@@ -24046,7 +24046,7 @@ var logSuggestionsAndReturn = async (connection, statements, json1, json2, meta)
24046
24046
  ).find(
24047
24047
  (c) => SQLiteSquasher.unsquashIdx(c).columns.includes(statement.columnName)
24048
24048
  );
24049
- const columnIsPk = json2.tables[newTableName].columns[statement.columnName].primaryKey;
24049
+ const columnIsPk = json1.tables[newTableName].columns[statement.columnName].primaryKey;
24050
24050
  const columnIsPartOfFk = Object.values(
24051
24051
  json1.tables[newTableName].foreignKeys
24052
24052
  ).find(