drizzle-kit 0.22.7-9e796de → 0.22.7-a16c9a1

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 CHANGED
@@ -122357,14 +122357,14 @@ var init_sqlitePushUtils = __esm({
122357
122357
  }
122358
122358
  tablesContext[newTableName] = _moveDataStatements(
122359
122359
  statement.tableName,
122360
- json1,
122360
+ json2,
122361
122361
  true
122362
122362
  );
122363
122363
  } else {
122364
122364
  if (typeof tablesContext[newTableName] === "undefined") {
122365
122365
  tablesContext[newTableName] = _moveDataStatements(
122366
122366
  statement.tableName,
122367
- json1
122367
+ json2
122368
122368
  );
122369
122369
  }
122370
122370
  }
@@ -122383,7 +122383,7 @@ var init_sqlitePushUtils = __esm({
122383
122383
  const uniqueTableRefs = [...new Set(tablesReferncingCurrent)];
122384
122384
  for (const table4 of uniqueTableRefs) {
122385
122385
  if (typeof tablesContext[table4] === "undefined") {
122386
- tablesContext[table4] = [..._moveDataStatements(table4, json1)];
122386
+ tablesContext[table4] = [..._moveDataStatements(table4, json2)];
122387
122387
  }
122388
122388
  }
122389
122389
  }
@@ -124236,22 +124236,25 @@ var init_push = __esm({
124236
124236
  process.exit(0);
124237
124237
  }
124238
124238
  }
124239
+ if (!("driver" in credentials2)) {
124240
+ await db2.query("begin");
124241
+ try {
124242
+ for (const dStmnt of statementsToExecute) {
124243
+ await db2.query(dStmnt);
124244
+ }
124245
+ await db2.query("commit");
124246
+ } catch (e2) {
124247
+ await db2.query("rollback");
124248
+ }
124249
+ } else if (credentials2.driver === "turso") {
124250
+ await db2.batch(statementsToExecute.map((it) => ({ query: it })));
124251
+ }
124239
124252
  if (statementsToExecute.length === 0) {
124240
124253
  (0, import_hanji11.render)(`
124241
124254
  [${source_default.blue("i")}] No changes detected`);
124242
124255
  } else {
124243
- if (!("driver" in credentials2)) {
124244
- await db2.query("begin");
124245
- try {
124246
- for (const dStmnt of statementsToExecute) {
124247
- await db2.query(dStmnt);
124248
- }
124249
- await db2.query("commit");
124250
- } catch (e2) {
124251
- await db2.query("rollback");
124252
- }
124253
- } else if (credentials2.driver === "turso") {
124254
- await db2.batch(statementsToExecute.map((it) => ({ query: it })));
124256
+ for (const dStmnt of statementsToExecute) {
124257
+ await db2.run(dStmnt);
124255
124258
  }
124256
124259
  (0, import_hanji11.render)(`[${source_default.green("\u2713")}] Changes applied`);
124257
124260
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "drizzle-kit",
3
- "version": "0.22.7-9e796de",
3
+ "version": "0.22.7-a16c9a1",
4
4
  "repository": "https://github.com/drizzle-team/drizzle-kit-mirror",
5
5
  "author": "Drizzle Team",
6
6
  "license": "MIT",
package/payload.js CHANGED
@@ -35048,14 +35048,14 @@ var logSuggestionsAndReturn = async (connection, statements, json1, json2, meta)
35048
35048
  }
35049
35049
  tablesContext[newTableName] = _moveDataStatements(
35050
35050
  statement.tableName,
35051
- json1,
35051
+ json2,
35052
35052
  true
35053
35053
  );
35054
35054
  } else {
35055
35055
  if (typeof tablesContext[newTableName] === "undefined") {
35056
35056
  tablesContext[newTableName] = _moveDataStatements(
35057
35057
  statement.tableName,
35058
- json1
35058
+ json2
35059
35059
  );
35060
35060
  }
35061
35061
  }
@@ -35074,7 +35074,7 @@ var logSuggestionsAndReturn = async (connection, statements, json1, json2, meta)
35074
35074
  const uniqueTableRefs = [...new Set(tablesReferncingCurrent)];
35075
35075
  for (const table4 of uniqueTableRefs) {
35076
35076
  if (typeof tablesContext[table4] === "undefined") {
35077
- tablesContext[table4] = [..._moveDataStatements(table4, json1)];
35077
+ tablesContext[table4] = [..._moveDataStatements(table4, json2)];
35078
35078
  }
35079
35079
  }
35080
35080
  }
package/payload.mjs CHANGED
@@ -35039,14 +35039,14 @@ var logSuggestionsAndReturn = async (connection, statements, json1, json2, meta)
35039
35039
  }
35040
35040
  tablesContext[newTableName] = _moveDataStatements(
35041
35041
  statement.tableName,
35042
- json1,
35042
+ json2,
35043
35043
  true
35044
35044
  );
35045
35045
  } else {
35046
35046
  if (typeof tablesContext[newTableName] === "undefined") {
35047
35047
  tablesContext[newTableName] = _moveDataStatements(
35048
35048
  statement.tableName,
35049
- json1
35049
+ json2
35050
35050
  );
35051
35051
  }
35052
35052
  }
@@ -35065,7 +35065,7 @@ var logSuggestionsAndReturn = async (connection, statements, json1, json2, meta)
35065
35065
  const uniqueTableRefs = [...new Set(tablesReferncingCurrent)];
35066
35066
  for (const table4 of uniqueTableRefs) {
35067
35067
  if (typeof tablesContext[table4] === "undefined") {
35068
- tablesContext[table4] = [..._moveDataStatements(table4, json1)];
35068
+ tablesContext[table4] = [..._moveDataStatements(table4, json2)];
35069
35069
  }
35070
35070
  }
35071
35071
  }