mirror of https://github.com/nocodb/nocodb
Pranav C
6 months ago
17 changed files with 87 additions and 49 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.BASES, (table) => { |
||||
table.boolean('is_schema_readonly').defaultTo(false); |
||||
table.boolean('is_data_readonly').defaultTo(false); |
||||
}); |
||||
}; |
||||
|
||||
const down = async (knex: Knex) => { |
||||
await knex.schema.alterTable(MetaTable.BASES, (table) => { |
||||
table.dropColumn('is_schema_readonly'); |
||||
table.dropColumn('is_data_readonly'); |
||||
}); |
||||
}; |
||||
|
||||
export { up, down }; |
Loading…
Reference in new issue