mirror of https://github.com/nocodb/nocodb
Mert E
5 months ago
committed by
GitHub
2 changed files with 20 additions and 0 deletions
@ -0,0 +1,16 @@
|
||||
import type { Knex } from 'knex'; |
||||
import { MetaTable } from '~/utils/globals'; |
||||
|
||||
const up = async (knex: Knex) => { |
||||
await knex.schema.alterTable(MetaTable.PROJECT_USERS, (table) => { |
||||
table.primary(['base_id', 'fk_user_id']); |
||||
}); |
||||
}; |
||||
|
||||
const down = async (knex: Knex) => { |
||||
await knex.schema.alterTable(MetaTable.PROJECT_USERS, (table) => { |
||||
table.dropPrimary(); |
||||
}); |
||||
}; |
||||
|
||||
export { up, down }; |
Loading…
Reference in new issue