fix: original error: SQLITE_ERROR: no such column: options
This commit is contained in:
parent
74bd479de0
commit
6cc88dfa2b
@ -10,6 +10,10 @@ export default class extends Migration {
|
||||
}
|
||||
const uiRoutes = this.db.getRepository('uiRoutes');
|
||||
const routes = await uiRoutes.find();
|
||||
if (!uiRoutes) {
|
||||
return;
|
||||
}
|
||||
await this.db.getCollection('systemSettings').sync();
|
||||
for (const route of routes) {
|
||||
if (route.uiSchemaUid && route?.options?.component === 'AdminLayout') {
|
||||
const options = instance.options || {};
|
||||
|
@ -9,6 +9,10 @@ export default class extends Migration {
|
||||
return;
|
||||
}
|
||||
const uiRoutes = this.db.getRepository('uiRoutes');
|
||||
if (!uiRoutes) {
|
||||
return;
|
||||
}
|
||||
await this.db.getCollection('systemSettings').sync();
|
||||
const routes = await uiRoutes.find();
|
||||
for (const route of routes) {
|
||||
if (route.uiSchemaUid && route?.options?.component === 'MApplication') {
|
||||
|
Loading…
Reference in New Issue
Block a user