Remove "locked" field from directus_fields

Closes #3925
This commit is contained in:
rijkvanzanten
2021-03-04 18:41:59 -05:00
parent 5afa6c04fc
commit 1e89c25872
9 changed files with 15 additions and 29 deletions

View File

@@ -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();
});
}

View File

@@ -27,10 +27,6 @@ columns:
length: 64
display_options:
type: json
locked:
type: boolean
default: false
nullable: false
readonly:
type: boolean
default: false

View File

@@ -5,7 +5,6 @@ interface: null
options: null
display: null
display_options: null
locked: false
readonly: false
hidden: false
sort: null

View File

@@ -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