mirror of https://github.com/nocodb/nocodb
Pranav C
8 months ago
2 changed files with 21 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.createTable(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