mirror of https://github.com/nocodb/nocodb
Pranav C
2 weeks ago
3 changed files with 28 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.VIEWS, (table) => { |
||||
table.boolean('is_personal').defaultTo(false); |
||||
table.boolean('created_by', 20).index(); |
||||
}); |
||||
}; |
||||
|
||||
const down = async (knex: Knex) => { |
||||
await knex.schema.alterTable(MetaTable.SOURCES, (table) => { |
||||
table.dropColumn('is_personal'); |
||||
table.dropColumn('created_by'); |
||||
}); |
||||
}; |
||||
|
||||
export { up, down }; |
Loading…
Reference in new issue