renamed database schemaCheck method to initialize
[websub-hub] / src / db / postgres / index.js
index f4f690a18e3a95d18bb55c3596d1a9c2d797fc66..d02d98165360f33819e220b195e3af0d18c26cd2 100644 (file)
@@ -100,13 +100,13 @@ class DatabasePostgres extends Database {
   }
 
 
-  async schemaCheck(applyMigrations = true) {
-    const _scope = _fileScope('schemaCheck');
+  async initialize(applyMigrations = true) {
+    const _scope = _fileScope('initialize');
     this.logger.debug(_scope, 'called', { applyMigrations });
     if (applyMigrations) {
       await this._initTables();
     }
-    await super.schemaCheck();
+    await super.initialize();
   }