drizzle-kit 1.0.0-beta.6-da87e04 → 1.0.0-beta.6-0918216

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/api-postgres.js CHANGED
@@ -25475,7 +25475,7 @@ ${JSON.stringify(column7.metadata)}`
25475
25475
  schema: schema5.name,
25476
25476
  table: table6.name,
25477
25477
  name: check.name,
25478
- value: check.definition
25478
+ value: check.definition.startsWith("CHECK (") ? check.definition.slice(7, -1) : check.definition
25479
25479
  });
25480
25480
  }
25481
25481
  const idxs = await db.query(`
@@ -147675,7 +147675,10 @@ import { sql } from "drizzle-orm"
147675
147675
  }
147676
147676
  }).join(", ")})`;
147677
147677
  statement += it.where ? `.where(sql\`${it.where}\`)` : "";
147678
- statement += it.with && Object.keys(it.with).length > 0 ? `.with(${it.with})` : "";
147678
+ statement += it.with ? `.with({ ${it.with.split(",").map((it2) => {
147679
+ const [key, value] = it2.split("=");
147680
+ return `"${key.trim()}": ${value.trim()}`;
147681
+ }).join(", ")} })` : "";
147679
147682
  statement += `,
147680
147683
  `;
147681
147684
  });
package/api-postgres.mjs CHANGED
@@ -25512,7 +25512,7 @@ ${JSON.stringify(column7.metadata)}`
25512
25512
  schema: schema5.name,
25513
25513
  table: table6.name,
25514
25514
  name: check.name,
25515
- value: check.definition
25515
+ value: check.definition.startsWith("CHECK (") ? check.definition.slice(7, -1) : check.definition
25516
25516
  });
25517
25517
  }
25518
25518
  const idxs = await db.query(`
@@ -147709,7 +147709,10 @@ import { sql } from "drizzle-orm"
147709
147709
  }
147710
147710
  }).join(", ")})`;
147711
147711
  statement += it.where ? `.where(sql\`${it.where}\`)` : "";
147712
- statement += it.with && Object.keys(it.with).length > 0 ? `.with(${it.with})` : "";
147712
+ statement += it.with ? `.with({ ${it.with.split(",").map((it2) => {
147713
+ const [key, value] = it2.split("=");
147714
+ return `"${key.trim()}": ${value.trim()}`;
147715
+ }).join(", ")} })` : "";
147713
147716
  statement += `,
147714
147717
  `;
147715
147718
  });
package/bin.cjs CHANGED
@@ -169341,7 +169341,10 @@ import { sql } from "drizzle-orm"
169341
169341
  }
169342
169342
  }).join(", ")})`;
169343
169343
  statement += it2.where ? `.where(sql\`${it2.where}\`)` : "";
169344
- statement += it2.with && Object.keys(it2.with).length > 0 ? `.with(${it2.with})` : "";
169344
+ statement += it2.with ? `.with({ ${it2.with.split(",").map((it3) => {
169345
+ const [key, value] = it3.split("=");
169346
+ return `"${key.trim()}": ${value.trim()}`;
169347
+ }).join(", ")} })` : "";
169345
169348
  statement += `,
169346
169349
  `;
169347
169350
  });
@@ -170541,7 +170544,7 @@ ${JSON.stringify(column11.metadata)}`
170541
170544
  schema: schema5.name,
170542
170545
  table: table6.name,
170543
170546
  name: check2.name,
170544
- value: check2.definition
170547
+ value: check2.definition.startsWith("CHECK (") ? check2.definition.slice(7, -1) : check2.definition
170545
170548
  });
170546
170549
  }
170547
170550
  const idxs = await db.query(`
@@ -172772,7 +172775,7 @@ ${JSON.stringify(column11.metadata)}`
172772
172775
  schema: schema5.name,
172773
172776
  table: table6.name,
172774
172777
  name: check2.name,
172775
- value: check2.definition
172778
+ value: check2.definition.startsWith("CHECK (") ? check2.definition.slice(7, -1) : check2.definition
172776
172779
  });
172777
172780
  }
172778
172781
  const idxs = await db.query(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "drizzle-kit",
3
- "version": "1.0.0-beta.6-da87e04",
3
+ "version": "1.0.0-beta.6-0918216",
4
4
  "homepage": "https://orm.drizzle.team",
5
5
  "keywords": [
6
6
  "drizzle",