drizzle-kit 0.22.7-a16c9a1 → 0.22.7-d059930

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
@@ -22804,12 +22804,12 @@ WHERE
22804
22804
  if (progressCallback) {
22805
22805
  progressCallback("indexes", indexesCount, "fetching");
22806
22806
  }
22807
- if (typeof tableInResult.indexes[constraintName] !== "undefined" && columnName) {
22807
+ if (typeof tableInResult.indexes[constraintName] !== "undefined") {
22808
22808
  tableInResult.indexes[constraintName].columns.push(columnName);
22809
22809
  } else {
22810
22810
  tableInResult.indexes[constraintName] = {
22811
22811
  name: constraintName,
22812
- columns: columnName ? [columnName] : [],
22812
+ columns: [columnName],
22813
22813
  isUnique
22814
22814
  };
22815
22815
  }
@@ -30103,12 +30103,7 @@ var init_snapshotsDiffer = __esm({
30103
30103
  {}
30104
30104
  );
30105
30105
  jsonCreateIndexesForAllAlteredTables.push(
30106
- ...prepareCreateIndexesJson(
30107
- it.name,
30108
- it.schema,
30109
- createdIndexes || {},
30110
- curFull.internal
30111
- )
30106
+ ...prepareCreateIndexesJson(it.name, it.schema, createdIndexes || {})
30112
30107
  );
30113
30108
  jsonDropIndexesForAllAlteredTables.push(
30114
30109
  ...prepareDropIndexesJson(it.name, it.schema, droppedIndexes || {})
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "drizzle-kit",
3
- "version": "0.22.7-a16c9a1",
3
+ "version": "0.22.7-d059930",
4
4
  "repository": "https://github.com/drizzle-team/drizzle-kit-mirror",
5
5
  "author": "Drizzle Team",
6
6
  "license": "MIT",
package/payload.js CHANGED
@@ -23656,12 +23656,7 @@ var init_snapshotsDiffer = __esm({
23656
23656
  {}
23657
23657
  );
23658
23658
  jsonCreateIndexesForAllAlteredTables.push(
23659
- ...prepareCreateIndexesJson(
23660
- it.name,
23661
- it.schema,
23662
- createdIndexes || {},
23663
- curFull.internal
23664
- )
23659
+ ...prepareCreateIndexesJson(it.name, it.schema, createdIndexes || {})
23665
23660
  );
23666
23661
  jsonDropIndexesForAllAlteredTables.push(
23667
23662
  ...prepareDropIndexesJson(it.name, it.schema, droppedIndexes || {})
@@ -29479,12 +29474,12 @@ WHERE
29479
29474
  if (progressCallback) {
29480
29475
  progressCallback("indexes", indexesCount, "fetching");
29481
29476
  }
29482
- if (typeof tableInResult.indexes[constraintName] !== "undefined" && columnName) {
29477
+ if (typeof tableInResult.indexes[constraintName] !== "undefined") {
29483
29478
  tableInResult.indexes[constraintName].columns.push(columnName);
29484
29479
  } else {
29485
29480
  tableInResult.indexes[constraintName] = {
29486
29481
  name: constraintName,
29487
- columns: columnName ? [columnName] : [],
29482
+ columns: [columnName],
29488
29483
  isUnique
29489
29484
  };
29490
29485
  }
package/payload.mjs CHANGED
@@ -23661,12 +23661,7 @@ var init_snapshotsDiffer = __esm({
23661
23661
  {}
23662
23662
  );
23663
23663
  jsonCreateIndexesForAllAlteredTables.push(
23664
- ...prepareCreateIndexesJson(
23665
- it.name,
23666
- it.schema,
23667
- createdIndexes || {},
23668
- curFull.internal
23669
- )
23664
+ ...prepareCreateIndexesJson(it.name, it.schema, createdIndexes || {})
23670
23665
  );
23671
23666
  jsonDropIndexesForAllAlteredTables.push(
23672
23667
  ...prepareDropIndexesJson(it.name, it.schema, droppedIndexes || {})
@@ -29484,12 +29479,12 @@ WHERE
29484
29479
  if (progressCallback) {
29485
29480
  progressCallback("indexes", indexesCount, "fetching");
29486
29481
  }
29487
- if (typeof tableInResult.indexes[constraintName] !== "undefined" && columnName) {
29482
+ if (typeof tableInResult.indexes[constraintName] !== "undefined") {
29488
29483
  tableInResult.indexes[constraintName].columns.push(columnName);
29489
29484
  } else {
29490
29485
  tableInResult.indexes[constraintName] = {
29491
29486
  name: constraintName,
29492
- columns: columnName ? [columnName] : [],
29487
+ columns: [columnName],
29493
29488
  isUnique
29494
29489
  };
29495
29490
  }