@gzl10/nexus-backend 0.16.4 → 0.16.5
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/cli.js +2 -1
- package/dist/cli.js.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/main.js +3 -2
- package/dist/main.js.map +1 -1
- package/package.json +5 -5
package/dist/cli.js
CHANGED
|
@@ -22608,9 +22608,10 @@ async function readPostgreSQLSchema(knex3) {
|
|
|
22608
22608
|
);
|
|
22609
22609
|
const idxRows = idxResult.rows || [];
|
|
22610
22610
|
for (const idx of idxRows) {
|
|
22611
|
+
const cols = Array.isArray(idx.column_names) ? idx.column_names : typeof idx.column_names === "string" ? idx.column_names.replace(/^\{|\}$/g, "").split(",").filter(Boolean) : [];
|
|
22611
22612
|
indexes.push({
|
|
22612
22613
|
name: idx.index_name,
|
|
22613
|
-
columns:
|
|
22614
|
+
columns: cols,
|
|
22614
22615
|
unique: idx.is_unique
|
|
22615
22616
|
});
|
|
22616
22617
|
}
|