Update schema and config file types. Allow js, ts, json, yaml, yml
This commit is contained in:
@@ -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}`);
|
||||
|
||||
Reference in New Issue
Block a user