drizzle-kit 0.30.2-44616e9 → 0.30.2-8e428d1

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.
Files changed (4) hide show
  1. package/api.js +140 -84
  2. package/api.mjs +140 -84
  3. package/bin.cjs +12 -3
  4. package/package.json +1 -1
package/bin.cjs CHANGED
@@ -39042,7 +39042,7 @@ ${withStyle.errorWarning(`We've found duplicated unique constraint names in ${so
39042
39042
  if (typeof column9.default === "string") {
39043
39043
  columnToSet.default = `'${column9.default}'`;
39044
39044
  } else {
39045
- if (sqlTypeLowered === "json") {
39045
+ if (sqlTypeLowered === "json" || Array.isArray(column9.default)) {
39046
39046
  columnToSet.default = `'${JSON.stringify(column9.default)}'`;
39047
39047
  } else if (column9.default instanceof Date) {
39048
39048
  if (sqlTypeLowered === "date") {
@@ -44764,8 +44764,10 @@ ${BREAKPOINT}ALTER TABLE ${tableNameWithSchema} ADD CONSTRAINT "${statement.newC
44764
44764
  return statement.type === "drop_index" && dialect6 === "postgresql";
44765
44765
  }
44766
44766
  convert(statement) {
44767
+ const { schema: schema6 } = statement;
44767
44768
  const { name } = PgSquasher.unsquashIdx(statement.data);
44768
- return `DROP INDEX "${name}";`;
44769
+ const indexNameWithSchema = schema6 ? `"${schema6}"."${name}"` : `"${name}"`;
44770
+ return `DROP INDEX ${indexNameWithSchema};`;
44769
44771
  }
44770
44772
  };
44771
44773
  PgCreateSchemaConvertor = class extends Convertor {
@@ -84343,6 +84345,7 @@ var init_introspect_singlestore = __esm({
84343
84345
  "tinyint",
84344
84346
  "varbinary",
84345
84347
  "varchar",
84348
+ "vector",
84346
84349
  "year",
84347
84350
  "enum"
84348
84351
  ]);
@@ -84740,6 +84743,12 @@ import { sql } from "drizzle-orm"
84740
84743
  out += defaultValue;
84741
84744
  return out;
84742
84745
  }
84746
+ if (lowered.startsWith("vector")) {
84747
+ const [dimensions, elementType] = lowered.substring("vector".length + 1, lowered.length - 1).split(",");
84748
+ let out = `${casing2(name)}: vector(${dbColumnName4({ name, casing: rawCasing, withMode: true })}{ dimensions: ${dimensions}, elementType: ${elementType} })`;
84749
+ out += defaultValue ? `.default(${mapColumnDefault4(defaultValue, isExpression)})` : "";
84750
+ return out;
84751
+ }
84743
84752
  console.log("uknown", type);
84744
84753
  return `// Warning: Can't parse ${type} from database
84745
84754
  // ${type}Type: ${type}("${name}")`;
@@ -92608,7 +92617,7 @@ init_utils5();
92608
92617
  var version2 = async () => {
92609
92618
  const { npmVersion } = await ormCoreVersions();
92610
92619
  const ormVersion = npmVersion ? `drizzle-orm: v${npmVersion}` : "";
92611
- const envVersion = "0.30.2-44616e9";
92620
+ const envVersion = "0.30.2-8e428d1";
92612
92621
  const kitVersion = envVersion ? `v${envVersion}` : "--";
92613
92622
  const versions = `drizzle-kit: ${kitVersion}
92614
92623
  ${ormVersion}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "drizzle-kit",
3
- "version": "0.30.2-44616e9",
3
+ "version": "0.30.2-8e428d1",
4
4
  "homepage": "https://orm.drizzle.team",
5
5
  "keywords": [
6
6
  "drizzle",