drizzle-kit 0.21.2-3abb478 → 0.21.2-4691a9f

Sign up to get free protection for your applications and to get access to all the features.
package/utils-studio.js CHANGED
@@ -5449,6 +5449,13 @@ var require_brace_expansion = __commonJS({
5449
5449
  }
5450
5450
  });
5451
5451
 
5452
+ // src/extensions/vector.ts
5453
+ var init_vector = __esm({
5454
+ "src/extensions/vector.ts"() {
5455
+ "use strict";
5456
+ }
5457
+ });
5458
+
5452
5459
  // src/serializer/pgSerializer.ts
5453
5460
  var import_pg_core2, import_pg_core3, import_drizzle_orm2, dialect4, trimChar, fromDatabase2, columnToDefault, defaultForColumn;
5454
5461
  var init_pgSerializer = __esm({
@@ -5459,6 +5466,7 @@ var init_pgSerializer = __esm({
5459
5466
  import_drizzle_orm2 = require("drizzle-orm");
5460
5467
  init_serializer();
5461
5468
  init_outputs();
5469
+ init_vector();
5462
5470
  dialect4 = new import_pg_core2.PgDialect();
5463
5471
  trimChar = (str, char) => {
5464
5472
  let start = 0;
@@ -5734,7 +5742,7 @@ var init_pgSerializer = __esm({
5734
5742
  }
5735
5743
  }
5736
5744
  const dbIndexes = await db.query(
5737
- `SELECT t.relname as table_name, ic.relname AS indexname,
5745
+ `SELECT DISTINCT ON (t.relname, ic.relname, k.i) t.relname as table_name, ic.relname AS indexname,
5738
5746
  k.i AS index_order,
5739
5747
  i.indisunique as is_unique,
5740
5748
  am.amname as method,
package/utils-studio.mjs CHANGED
@@ -5454,6 +5454,13 @@ var require_brace_expansion = __commonJS({
5454
5454
  }
5455
5455
  });
5456
5456
 
5457
+ // src/extensions/vector.ts
5458
+ var init_vector = __esm({
5459
+ "src/extensions/vector.ts"() {
5460
+ "use strict";
5461
+ }
5462
+ });
5463
+
5457
5464
  // src/serializer/pgSerializer.ts
5458
5465
  import {
5459
5466
  PgDialect,
@@ -5468,6 +5475,7 @@ var init_pgSerializer = __esm({
5468
5475
  "use strict";
5469
5476
  init_serializer();
5470
5477
  init_outputs();
5478
+ init_vector();
5471
5479
  dialect4 = new PgDialect();
5472
5480
  trimChar = (str, char) => {
5473
5481
  let start = 0;
@@ -5743,7 +5751,7 @@ var init_pgSerializer = __esm({
5743
5751
  }
5744
5752
  }
5745
5753
  const dbIndexes = await db.query(
5746
- `SELECT t.relname as table_name, ic.relname AS indexname,
5754
+ `SELECT DISTINCT ON (t.relname, ic.relname, k.i) t.relname as table_name, ic.relname AS indexname,
5747
5755
  k.i AS index_order,
5748
5756
  i.indisunique as is_unique,
5749
5757
  am.amname as method,