Browse Source

fix: create meta db if missing

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/5566/head
Pranav C 2 years ago
parent
commit
1d3eee6b16
  1. 4
      packages/nocodb-nest/src/app.module.ts

4
packages/nocodb-nest/src/app.module.ts

@ -16,6 +16,7 @@ import { GlobalModule } from './modules/global/global.module';
import { LocalStrategy } from './strategies/local.strategy'; import { LocalStrategy } from './strategies/local.strategy';
import { AuthTokenStrategy } from './strategies/authtoken.strategy/authtoken.strategy'; import { AuthTokenStrategy } from './strategies/authtoken.strategy/authtoken.strategy';
import { BaseViewStrategy } from './strategies/base-view.strategy/base-view.strategy'; import { BaseViewStrategy } from './strategies/base-view.strategy/base-view.strategy';
import NcConfigFactory from './utils/NcConfigFactory'
import NcUpgrader from './version-upgrader/NcUpgrader'; import NcUpgrader from './version-upgrader/NcUpgrader';
import { MetasModule } from './modules/metas/metas.module'; import { MetasModule } from './modules/metas/metas.module';
import NocoCache from './cache/NocoCache'; import NocoCache from './cache/NocoCache';
@ -68,6 +69,9 @@ export class AppModule implements OnApplicationBootstrap {
await NocoCache.init(); await NocoCache.init();
await this.connection.init(); await this.connection.init();
await NcConfigFactory.metaDbCreateIfNotExist(Noco.config);
await this.metaService.init(); await this.metaService.init();
// todo: remove // todo: remove

Loading…
Cancel
Save