mirror of https://github.com/nocodb/nocodb
2 changed files with 28 additions and 0 deletions
@ -0,0 +1,24 @@
|
||||
import type { Knex } from 'knex'; |
||||
import { MetaTable } from '~/utils/globals'; |
||||
|
||||
const up = async (knex: Knex) => { |
||||
await knex.schema.alterTable(MetaTable.USERS, (table) => { |
||||
table.string('display_name'); |
||||
table.string('user_name'); |
||||
table.dropColumn('firstname'); |
||||
table.dropColumn('lastname'); |
||||
table.dropColumn('username'); |
||||
}); |
||||
}; |
||||
|
||||
const down = async (knex: Knex) => { |
||||
await knex.schema.alterTable(MetaTable.USERS, (table) => { |
||||
table.dropColumn('display_name'); |
||||
table.dropColumn('user_name'); |
||||
table.string('firstname'); |
||||
table.string('lastname'); |
||||
table.string('username'); |
||||
}); |
||||
}; |
||||
|
||||
export { up, down }; |
Loading…
Reference in new issue