mirror of
https://github.com/directus/directus.git
synced 2026-02-02 03:45:07 -05:00
Add one_collection_field / one_allowed_collections columns to relations
This commit is contained in:
@@ -21,7 +21,6 @@ columns:
|
||||
one_collection:
|
||||
type: string
|
||||
length: 64
|
||||
nullable: false
|
||||
references:
|
||||
table: directus_collections
|
||||
column: collection
|
||||
@@ -31,7 +30,11 @@ columns:
|
||||
one_primary:
|
||||
type: string
|
||||
length: 64
|
||||
nullable: false
|
||||
one_collection_field:
|
||||
type: string
|
||||
length: 64
|
||||
one_allowed_collections:
|
||||
type: text
|
||||
junction_field:
|
||||
type: string
|
||||
length: 64
|
||||
|
||||
7
api/src/database/seeds/03-fields/12-relations.yaml
Normal file
7
api/src/database/seeds/03-fields/12-relations.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
table: directus_relations
|
||||
|
||||
fields:
|
||||
- collection: directus_relations
|
||||
field: one_allowed_collections
|
||||
locked: true
|
||||
special: csv
|
||||
Reference in New Issue
Block a user