refactor(app-config): remove obsolete properties
This commit is contained in:
@@ -0,0 +1,15 @@
|
|||||||
|
export async function up(knex) {
|
||||||
|
return await knex.schema.alterTable('app_configs', (table) => {
|
||||||
|
table.dropColumn('shared');
|
||||||
|
table.dropColumn('connection_allowed');
|
||||||
|
table.dropColumn('custom_connection_allowed');
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
export async function down(knex) {
|
||||||
|
return await knex.schema.alterTable('app_configs', (table) => {
|
||||||
|
table.boolean('shared').defaultTo(false);
|
||||||
|
table.boolean('connection_allowed').defaultTo(false);
|
||||||
|
table.boolean('custom_connection_allowed').defaultTo(false);
|
||||||
|
});
|
||||||
|
}
|
@@ -17,9 +17,6 @@ class AppConfig extends Base {
|
|||||||
id: { type: 'string', format: 'uuid' },
|
id: { type: 'string', format: 'uuid' },
|
||||||
key: { type: 'string' },
|
key: { type: 'string' },
|
||||||
useOnlyPredefinedAuthClients: { type: 'boolean', default: false },
|
useOnlyPredefinedAuthClients: { type: 'boolean', default: false },
|
||||||
connectionAllowed: { type: 'boolean', default: false },
|
|
||||||
customConnectionAllowed: { type: 'boolean', default: false },
|
|
||||||
shared: { type: 'boolean', default: false },
|
|
||||||
disabled: { type: 'boolean', default: false },
|
disabled: { type: 'boolean', default: false },
|
||||||
createdAt: { type: 'string' },
|
createdAt: { type: 'string' },
|
||||||
updatedAt: { type: 'string' },
|
updatedAt: { type: 'string' },
|
||||||
|
Reference in New Issue
Block a user