tachybase_todo/packages/core/server/src/migration.ts
sealday 3e58c54aa8 feat: 仓库二期 (#719)
Co-authored-by: hello@lv <2256334253@qq.com>
Co-authored-by: wjh <wwwjh0710@163.com>
Co-authored-by: sealday <sealday@gmail.com>
Reviewed-on: daoyoucloud/tachybase#719
2024-05-08 16:20:31 +08:00

23 lines
489 B
TypeScript

import { Migration as DbMigration } from '@tachybase/database';
import Application from './application';
import Plugin from './plugin';
import { PluginManager } from './plugin-manager';
export class Migration extends DbMigration {
appVersion = '';
pluginVersion = '';
on = 'afterLoad';
get app() {
return this.context.app as Application;
}
get pm() {
return this.context.app.pm as PluginManager;
}
get plugin() {
return this.context.plugin as Plugin;
}
}