@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
|
@@ -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
|
-
|
|
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