Skip to content

Commit 4070a9b

Browse files
committed
loading schema first
1 parent b25557c commit 4070a9b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Controllers/DatabaseController.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1005,7 +1005,8 @@ DatabaseController.prototype.performInitialization = function() {
10051005
throw error;
10061006
});
10071007

1008-
const indexPromise = this.adapter.updateSchemaWithIndexes();
1008+
const indexPromise = this.loadSchema()
1009+
.then(() => this.adapter.updateSchemaWithIndexes());
10091010

10101011
// Create tables for volatile classes
10111012
const adapterInit = this.adapter.performInitialization({ VolatileClassesSchemas: SchemaController.VolatileClassesSchemas });

0 commit comments

Comments
 (0)