We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0822904 commit 4d58b6dCopy full SHA for 4d58b6d
src/SchemaMigrations/DefinedSchemas.js
@@ -120,7 +120,16 @@ export class DefinedSchemas {
120
c => !localSchemas.includes(c) && !systemClasses.includes(c)
121
);
122
123
- if (missingSchemas.length) {
+ if (new Set(localSchemas).size !== localSchemas.length) {
124
+ logger.error(
125
+ `The list of schemas provided contains duplicated "className" "${localSchemas.join(
126
+ '","'
127
+ )}"`
128
+ );
129
+ process.exit(1);
130
+ }
131
+
132
+ if (this.migrationsOptions.strict && missingSchemas.length) {
133
logger.warn(
134
`The following schemas are currently present in the database, but not explicitly defined in a schema: "${missingSchemas.join(
135
'", "'
0 commit comments