Browse Source

Merge pull request #5566 from nocodb/fix/5549-create-metadb-if-missing

fix: create meta db if missing
pull/5575/head
Pranav C 2 years ago committed by GitHub
parent
commit
d96294207a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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(this.connection.config);
await this.metaService.init(); await this.metaService.init();
// todo: remove // todo: remove

Loading…
Cancel
Save