mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 21:37:15 +00:00
34e17004c5
* feat: improve upgrade * feat: addMigrations * fix: get version * feat: retry * feat: migration context * feat: get the version number from the server
14 lines
309 B
TypeScript
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;
|
|
}
|
|
}
|