tachybase_todo/packages/core/server/src/migration.ts
chenos 34e17004c5
feat: improve migrations (#510)
* feat: improve upgrade

* feat: addMigrations

* fix: get version

* feat: retry

* feat: migration context

* feat: get the version number from the server
2022-06-17 10:25:59 +08:00

14 lines
309 B
TypeScript

import { Migration as DbMigration } from '@nocobase/database';
import Application from './application';
import Plugin from './plugin';
export class Migration extends DbMigration {
get app() {
return this.context.app as Application;
}
get plugin() {
return this.context.plugin as Plugin;
}
}