mirror of https://github.com/nocodb/nocodb
Pranav C
8 months ago
committed by
GitHub
3 changed files with 25 additions and 0 deletions
@ -0,0 +1,18 @@
|
||||
import type { Knex } from 'knex'; |
||||
import { MetaTable } from '~/utils/globals'; |
||||
|
||||
const up = async (knex: Knex) => { |
||||
await knex.schema.alterTable(MetaTable.USERS, (table) => { |
||||
table.boolean('blocked').defaultTo(false); |
||||
table.string('blocked_reason'); |
||||
}); |
||||
}; |
||||
|
||||
const down = async (knex: Knex) => { |
||||
await knex.schema.alterTable(MetaTable.USERS, (table) => { |
||||
table.dropColumn('blocked'); |
||||
table.dropColumn('blocked_reason'); |
||||
}); |
||||
}; |
||||
|
||||
export { up, down }; |
Loading…
Reference in new issue