chore: Convert conditions of permissions to array
This commit is contained in:
@@ -0,0 +1,11 @@
|
|||||||
|
import { Knex } from 'knex';
|
||||||
|
|
||||||
|
export async function up(knex: Knex): Promise<void> {
|
||||||
|
await knex('permissions')
|
||||||
|
.where(knex.raw('conditions::text'), '=', knex.raw("'{}'::text"))
|
||||||
|
.update('conditions', JSON.stringify([]));
|
||||||
|
}
|
||||||
|
|
||||||
|
export async function down(): Promise<void> {
|
||||||
|
// void
|
||||||
|
}
|
Reference in New Issue
Block a user