mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 06:15:11 +00:00
fix: skip if exists
This commit is contained in:
parent
021ca950ab
commit
767b81c65d
@ -5,6 +5,9 @@ export default class extends Migration {
|
||||
async up() {
|
||||
const systemSettings = this.db.getRepository('systemSettings');
|
||||
let instance: Model = await systemSettings.findOne();
|
||||
if (instance?.options?.adminSchemaUid) {
|
||||
return;
|
||||
}
|
||||
const uiRoutes = this.db.getRepository('uiRoutes');
|
||||
const routes = await uiRoutes.find();
|
||||
for (const route of routes) {
|
||||
|
@ -5,6 +5,9 @@ export default class extends Migration {
|
||||
async up() {
|
||||
const systemSettings = this.db.getRepository('systemSettings');
|
||||
let instance: Model = await systemSettings.findOne();
|
||||
if (instance?.options?.mobileSchemaUid) {
|
||||
return;
|
||||
}
|
||||
const uiRoutes = this.db.getRepository('uiRoutes');
|
||||
const routes = await uiRoutes.find();
|
||||
for (const route of routes) {
|
||||
|
Loading…
Reference in New Issue
Block a user