@lark-apaas/db-schema-sync 0.1.20 → 0.1.21-beta.0

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/dist/bin.js CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  generateSchema,
8
8
  resolveEnvOptions,
9
9
  validateGeneratedSchema
10
- } from "./chunk-DKKLHIJO.js";
10
+ } from "./chunk-T3RIJCQD.js";
11
11
 
12
12
  // node_modules/dotenv/package.json
13
13
  var require_package = __commonJS({
@@ -1949,7 +1949,8 @@ function generateIndexCode(idx, tableIdentifier, knownColumnProperties) {
1949
1949
  const escapedName = escapeDoubleQuote(idx.indexName);
1950
1950
  const allColumnsKnown = knownColumnProperties === void 0 ? true : propertyRefs.every((prop) => knownColumnProperties.has(prop));
1951
1951
  if (!columns || !allColumnsKnown) {
1952
- return `// Complex index: ${idx.indexDef || idx.indexName}`;
1952
+ const diagnostic = idx.indexDef || idx.indexName;
1953
+ return `// Complex index: ${diagnostic.replace(/(\r\n|\r|\n)/g, "$1// ")}`;
1953
1954
  }
1954
1955
  const creationType = idx.indexCreationType || "btree";
1955
1956
  if (creationType !== "btree") {
package/dist/index.js CHANGED
@@ -6,7 +6,7 @@ import {
6
6
  normalizeApiResponse,
7
7
  resolveEnvOptions,
8
8
  validateGeneratedSchema
9
- } from "./chunk-DKKLHIJO.js";
9
+ } from "./chunk-T3RIJCQD.js";
10
10
  export {
11
11
  generateSchema,
12
12
  generateSchemaCode,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lark-apaas/db-schema-sync",
3
- "version": "0.1.20",
3
+ "version": "0.1.21-beta.0",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",