sealday
3e58c54aa8
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
23 lines
489 B
TypeScript
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;
|
|
}
|
|
}
|