feat: remove plugin-charts
This commit is contained in:
parent
f374c2f9b5
commit
c3a1538435
@ -23,7 +23,6 @@ export class PresetNocoBase extends Plugin {
|
|||||||
'duplicator',
|
'duplicator',
|
||||||
'iframe-block',
|
'iframe-block',
|
||||||
'formula-field',
|
'formula-field',
|
||||||
'charts',
|
|
||||||
'data-visualization',
|
'data-visualization',
|
||||||
'auth',
|
'auth',
|
||||||
'sms-auth',
|
'sms-auth',
|
||||||
@ -31,6 +30,7 @@ export class PresetNocoBase extends Plugin {
|
|||||||
];
|
];
|
||||||
|
|
||||||
localPlugins = [
|
localPlugins = [
|
||||||
|
// ['charts', '0.9.1-alpha.2'],
|
||||||
['audit-logs', '0.7.1-alpha.4'],
|
['audit-logs', '0.7.1-alpha.4'],
|
||||||
['sample-hello', '0.8.0-alpha.4'],
|
['sample-hello', '0.8.0-alpha.4'],
|
||||||
['multi-app-manager', '0.7.0-alpha.1'],
|
['multi-app-manager', '0.7.0-alpha.1'],
|
||||||
|
@ -0,0 +1,27 @@
|
|||||||
|
import { Migration } from '@nocobase/server';
|
||||||
|
|
||||||
|
export default class extends Migration {
|
||||||
|
async up() {
|
||||||
|
const version = await this.app.version.satisfies('<0.14.0-alpha.8');
|
||||||
|
if (!version) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
const repository = this.context.db.getRepository('applicationPlugins');
|
||||||
|
const model = await repository.findOne({
|
||||||
|
filter: {
|
||||||
|
name: 'charts',
|
||||||
|
},
|
||||||
|
});
|
||||||
|
if (!model) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
await repository.update({
|
||||||
|
values: {
|
||||||
|
builtIn: false,
|
||||||
|
},
|
||||||
|
filter: {
|
||||||
|
name: 'charts',
|
||||||
|
},
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user