Update schema and config file types. Allow js, ts, json, yaml, yml

This commit is contained in:
2026-07-30 07:05:47 +01:00
parent 3bbf00cdb0
commit 246c42a214
8 changed files with 289 additions and 69 deletions
+4 -1
View File
@@ -68,6 +68,7 @@ export default async function syncIndexes({
protectedIndexNames.add(field.fieldName);
}
}
for (const constraint of table.uniqueConstraints || []) {
if (constraint.constraintName) {
protectedIndexNames.add(constraint.constraintName);
@@ -94,7 +95,9 @@ export default async function syncIndexes({
continue;
}
const schemaIndex = table.indexes?.find((i) => i.indexName === indexName);
const schemaIndex = table.indexes?.find(
(i) => i.indexName === indexName,
);
if (!schemaIndex) {
console.log(`Dropping index: ${indexName}`);