mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
@@ -0,0 +1,13 @@
|
||||
import { Knex } from 'knex';
|
||||
|
||||
export async function up(knex: Knex) {
|
||||
await knex.schema.alterTable('directus_fields', (table) => {
|
||||
table.dropColumn('locked');
|
||||
});
|
||||
}
|
||||
|
||||
export async function down(knex: Knex) {
|
||||
await knex.schema.alterTable('directus_fields', (table) => {
|
||||
table.boolean('locked').defaultTo(false).notNullable();
|
||||
});
|
||||
}
|
||||
@@ -27,10 +27,6 @@ columns:
|
||||
length: 64
|
||||
display_options:
|
||||
type: json
|
||||
locked:
|
||||
type: boolean
|
||||
default: false
|
||||
nullable: false
|
||||
readonly:
|
||||
type: boolean
|
||||
default: false
|
||||
|
||||
@@ -5,7 +5,6 @@ interface: null
|
||||
options: null
|
||||
display: null
|
||||
display_options: null
|
||||
locked: false
|
||||
readonly: false
|
||||
hidden: false
|
||||
sort: null
|
||||
|
||||
@@ -40,12 +40,6 @@ fields:
|
||||
special: json
|
||||
width: half
|
||||
|
||||
- collection: directus_fields
|
||||
field: locked
|
||||
hidden: true
|
||||
special: boolean
|
||||
width: half
|
||||
|
||||
- collection: directus_fields
|
||||
field: readonly
|
||||
hidden: true
|
||||
|
||||
Reference in New Issue
Block a user