Fix some things in the Directus schema
This commit is contained in:
@@ -1730,15 +1730,15 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"collection": "Contact_Social",
|
"collection": "Contact_Social",
|
||||||
"field": "text",
|
"field": "url",
|
||||||
"type": "text",
|
"type": "string",
|
||||||
"schema": {
|
"schema": {
|
||||||
"name": "text",
|
"name": "url",
|
||||||
"table": "Contact_Social",
|
"table": "Contact_Social",
|
||||||
"data_type": "text",
|
"data_type": "character varying",
|
||||||
"default_value": null,
|
"default_value": null,
|
||||||
"generation_expression": null,
|
"generation_expression": null,
|
||||||
"max_length": null,
|
"max_length": 255,
|
||||||
"numeric_precision": null,
|
"numeric_precision": null,
|
||||||
"numeric_scale": null,
|
"numeric_scale": null,
|
||||||
"is_generated": false,
|
"is_generated": false,
|
||||||
@@ -1754,10 +1754,12 @@
|
|||||||
},
|
},
|
||||||
"meta": {
|
"meta": {
|
||||||
"collection": "Contact_Social",
|
"collection": "Contact_Social",
|
||||||
"field": "text",
|
"field": "url",
|
||||||
"special": null,
|
"special": null,
|
||||||
"interface": "input-rich-text-md",
|
"interface": "input",
|
||||||
"options": null,
|
"options": {
|
||||||
|
"iconLeft": "link"
|
||||||
|
},
|
||||||
"display": null,
|
"display": null,
|
||||||
"display_options": null,
|
"display_options": null,
|
||||||
"readonly": false,
|
"readonly": false,
|
||||||
@@ -4553,9 +4555,7 @@
|
|||||||
"o2m"
|
"o2m"
|
||||||
],
|
],
|
||||||
"interface": "list-o2m",
|
"interface": "list-o2m",
|
||||||
"options": {
|
"options": null,
|
||||||
"template": "{{title}}"
|
|
||||||
},
|
|
||||||
"display": null,
|
"display": null,
|
||||||
"display_options": null,
|
"display_options": null,
|
||||||
"readonly": false,
|
"readonly": false,
|
||||||
@@ -4565,7 +4565,7 @@
|
|||||||
"translations": null,
|
"translations": null,
|
||||||
"note": null,
|
"note": null,
|
||||||
"conditions": null,
|
"conditions": null,
|
||||||
"required": true,
|
"required": false,
|
||||||
"group": null,
|
"group": null,
|
||||||
"validation": null,
|
"validation": null,
|
||||||
"validation_message": null,
|
"validation_message": null,
|
||||||
@@ -7569,10 +7569,10 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"collection": "Search_Engine_Optimisation",
|
"collection": "Search_Engine_Optimisation",
|
||||||
"field": "Page_id",
|
"field": "Project_id",
|
||||||
"type": "uuid",
|
"type": "uuid",
|
||||||
"schema": {
|
"schema": {
|
||||||
"name": "Page_id",
|
"name": "Project_id",
|
||||||
"table": "Search_Engine_Optimisation",
|
"table": "Search_Engine_Optimisation",
|
||||||
"data_type": "uuid",
|
"data_type": "uuid",
|
||||||
"default_value": null,
|
"default_value": null,
|
||||||
@@ -7587,23 +7587,25 @@
|
|||||||
"is_primary_key": false,
|
"is_primary_key": false,
|
||||||
"has_auto_increment": false,
|
"has_auto_increment": false,
|
||||||
"foreign_key_schema": "public",
|
"foreign_key_schema": "public",
|
||||||
"foreign_key_table": "Pages",
|
"foreign_key_table": "Projects",
|
||||||
"foreign_key_column": "id",
|
"foreign_key_column": "id",
|
||||||
"comment": null
|
"comment": null
|
||||||
},
|
},
|
||||||
"meta": {
|
"meta": {
|
||||||
"collection": "Search_Engine_Optimisation",
|
"collection": "Search_Engine_Optimisation",
|
||||||
"field": "Page_id",
|
"field": "Project_id",
|
||||||
"special": [
|
"special": [
|
||||||
"uuid"
|
"m2o"
|
||||||
],
|
],
|
||||||
"interface": "input",
|
"interface": "select-dropdown-m2o",
|
||||||
"options": null,
|
"options": {
|
||||||
|
"template": "{{title}}"
|
||||||
|
},
|
||||||
"display": null,
|
"display": null,
|
||||||
"display_options": null,
|
"display_options": null,
|
||||||
"readonly": false,
|
"readonly": false,
|
||||||
"hidden": false,
|
"hidden": true,
|
||||||
"sort": 12,
|
"sort": 16,
|
||||||
"width": "full",
|
"width": "full",
|
||||||
"translations": null,
|
"translations": null,
|
||||||
"note": null,
|
"note": null,
|
||||||
@@ -7643,15 +7645,17 @@
|
|||||||
"collection": "Search_Engine_Optimisation",
|
"collection": "Search_Engine_Optimisation",
|
||||||
"field": "Blog_id",
|
"field": "Blog_id",
|
||||||
"special": [
|
"special": [
|
||||||
"uuid"
|
"m2o"
|
||||||
],
|
],
|
||||||
"interface": "input",
|
"interface": "select-dropdown-m2o",
|
||||||
"options": null,
|
"options": {
|
||||||
|
"template": "{{title}}"
|
||||||
|
},
|
||||||
"display": null,
|
"display": null,
|
||||||
"display_options": null,
|
"display_options": null,
|
||||||
"readonly": false,
|
"readonly": false,
|
||||||
"hidden": true,
|
"hidden": true,
|
||||||
"sort": 13,
|
"sort": 18,
|
||||||
"width": "full",
|
"width": "full",
|
||||||
"translations": null,
|
"translations": null,
|
||||||
"note": null,
|
"note": null,
|
||||||
@@ -7665,10 +7669,10 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"collection": "Search_Engine_Optimisation",
|
"collection": "Search_Engine_Optimisation",
|
||||||
"field": "Project_id",
|
"field": "Page_id",
|
||||||
"type": "uuid",
|
"type": "uuid",
|
||||||
"schema": {
|
"schema": {
|
||||||
"name": "Project_id",
|
"name": "Page_id",
|
||||||
"table": "Search_Engine_Optimisation",
|
"table": "Search_Engine_Optimisation",
|
||||||
"data_type": "uuid",
|
"data_type": "uuid",
|
||||||
"default_value": null,
|
"default_value": null,
|
||||||
@@ -7683,23 +7687,25 @@
|
|||||||
"is_primary_key": false,
|
"is_primary_key": false,
|
||||||
"has_auto_increment": false,
|
"has_auto_increment": false,
|
||||||
"foreign_key_schema": "public",
|
"foreign_key_schema": "public",
|
||||||
"foreign_key_table": "Projects",
|
"foreign_key_table": "Pages",
|
||||||
"foreign_key_column": "id",
|
"foreign_key_column": "id",
|
||||||
"comment": null
|
"comment": null
|
||||||
},
|
},
|
||||||
"meta": {
|
"meta": {
|
||||||
"collection": "Search_Engine_Optimisation",
|
"collection": "Search_Engine_Optimisation",
|
||||||
"field": "Project_id",
|
"field": "Page_id",
|
||||||
"special": [
|
"special": [
|
||||||
"uuid"
|
"m2o"
|
||||||
],
|
],
|
||||||
"interface": "input",
|
"interface": "select-dropdown-m2o",
|
||||||
"options": null,
|
"options": {
|
||||||
|
"template": "{{url}}"
|
||||||
|
},
|
||||||
"display": null,
|
"display": null,
|
||||||
"display_options": null,
|
"display_options": null,
|
||||||
"readonly": false,
|
"readonly": false,
|
||||||
"hidden": true,
|
"hidden": true,
|
||||||
"sort": 14,
|
"sort": 19,
|
||||||
"width": "full",
|
"width": "full",
|
||||||
"translations": null,
|
"translations": null,
|
||||||
"note": null,
|
"note": null,
|
||||||
@@ -9261,37 +9267,6 @@
|
|||||||
"searchable": true
|
"searchable": true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"collection": "Blogs",
|
|
||||||
"field": "search_engine",
|
|
||||||
"type": "alias",
|
|
||||||
"schema": null,
|
|
||||||
"meta": {
|
|
||||||
"collection": "Blogs",
|
|
||||||
"field": "search_engine",
|
|
||||||
"special": [
|
|
||||||
"o2m"
|
|
||||||
],
|
|
||||||
"interface": "list-o2m",
|
|
||||||
"options": {
|
|
||||||
"template": "{{title}}"
|
|
||||||
},
|
|
||||||
"display": null,
|
|
||||||
"display_options": null,
|
|
||||||
"readonly": false,
|
|
||||||
"hidden": false,
|
|
||||||
"sort": 10,
|
|
||||||
"width": "full",
|
|
||||||
"translations": null,
|
|
||||||
"note": null,
|
|
||||||
"conditions": null,
|
|
||||||
"required": true,
|
|
||||||
"group": null,
|
|
||||||
"validation": null,
|
|
||||||
"validation_message": null,
|
|
||||||
"searchable": true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"collection": "Blogs",
|
"collection": "Blogs",
|
||||||
"field": "tags",
|
"field": "tags",
|
||||||
@@ -9311,7 +9286,7 @@
|
|||||||
"display_options": null,
|
"display_options": null,
|
||||||
"readonly": false,
|
"readonly": false,
|
||||||
"hidden": false,
|
"hidden": false,
|
||||||
"sort": 11,
|
"sort": 10,
|
||||||
"width": "full",
|
"width": "full",
|
||||||
"translations": null,
|
"translations": null,
|
||||||
"note": null,
|
"note": null,
|
||||||
@@ -9323,6 +9298,35 @@
|
|||||||
"searchable": true
|
"searchable": true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"collection": "Blogs",
|
||||||
|
"field": "search_engine",
|
||||||
|
"type": "alias",
|
||||||
|
"schema": null,
|
||||||
|
"meta": {
|
||||||
|
"collection": "Blogs",
|
||||||
|
"field": "search_engine",
|
||||||
|
"special": [
|
||||||
|
"o2m"
|
||||||
|
],
|
||||||
|
"interface": "list-o2m",
|
||||||
|
"options": null,
|
||||||
|
"display": null,
|
||||||
|
"display_options": null,
|
||||||
|
"readonly": false,
|
||||||
|
"hidden": false,
|
||||||
|
"sort": 11,
|
||||||
|
"width": "full",
|
||||||
|
"translations": null,
|
||||||
|
"note": null,
|
||||||
|
"conditions": null,
|
||||||
|
"required": true,
|
||||||
|
"group": null,
|
||||||
|
"validation": null,
|
||||||
|
"validation_message": null,
|
||||||
|
"searchable": true
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"collection": "Blogs",
|
"collection": "Blogs",
|
||||||
"field": "content",
|
"field": "content",
|
||||||
@@ -12356,37 +12360,6 @@
|
|||||||
"searchable": true
|
"searchable": true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"collection": "Projects",
|
|
||||||
"field": "search_engine",
|
|
||||||
"type": "alias",
|
|
||||||
"schema": null,
|
|
||||||
"meta": {
|
|
||||||
"collection": "Projects",
|
|
||||||
"field": "search_engine",
|
|
||||||
"special": [
|
|
||||||
"o2m"
|
|
||||||
],
|
|
||||||
"interface": "list-o2m",
|
|
||||||
"options": {
|
|
||||||
"template": "{{title}}"
|
|
||||||
},
|
|
||||||
"display": null,
|
|
||||||
"display_options": null,
|
|
||||||
"readonly": false,
|
|
||||||
"hidden": false,
|
|
||||||
"sort": 10,
|
|
||||||
"width": "full",
|
|
||||||
"translations": null,
|
|
||||||
"note": null,
|
|
||||||
"conditions": null,
|
|
||||||
"required": true,
|
|
||||||
"group": null,
|
|
||||||
"validation": null,
|
|
||||||
"validation_message": null,
|
|
||||||
"searchable": true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"collection": "Projects",
|
"collection": "Projects",
|
||||||
"field": "tags",
|
"field": "tags",
|
||||||
@@ -12406,7 +12379,7 @@
|
|||||||
"display_options": null,
|
"display_options": null,
|
||||||
"readonly": false,
|
"readonly": false,
|
||||||
"hidden": false,
|
"hidden": false,
|
||||||
"sort": 11,
|
"sort": 10,
|
||||||
"width": "full",
|
"width": "full",
|
||||||
"translations": null,
|
"translations": null,
|
||||||
"note": null,
|
"note": null,
|
||||||
@@ -12418,6 +12391,35 @@
|
|||||||
"searchable": true
|
"searchable": true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"collection": "Projects",
|
||||||
|
"field": "search_engine",
|
||||||
|
"type": "alias",
|
||||||
|
"schema": null,
|
||||||
|
"meta": {
|
||||||
|
"collection": "Projects",
|
||||||
|
"field": "search_engine",
|
||||||
|
"special": [
|
||||||
|
"o2m"
|
||||||
|
],
|
||||||
|
"interface": "list-o2m",
|
||||||
|
"options": null,
|
||||||
|
"display": null,
|
||||||
|
"display_options": null,
|
||||||
|
"readonly": false,
|
||||||
|
"hidden": false,
|
||||||
|
"sort": 11,
|
||||||
|
"width": "full",
|
||||||
|
"translations": null,
|
||||||
|
"note": null,
|
||||||
|
"conditions": null,
|
||||||
|
"required": true,
|
||||||
|
"group": null,
|
||||||
|
"validation": null,
|
||||||
|
"validation_message": null,
|
||||||
|
"searchable": true
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"collection": "Projects",
|
"collection": "Projects",
|
||||||
"field": "content",
|
"field": "content",
|
||||||
@@ -20052,6 +20054,68 @@
|
|||||||
"searchable": true
|
"searchable": true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"collection": "Text_With_Side_Image",
|
||||||
|
"field": "image_size",
|
||||||
|
"type": "string",
|
||||||
|
"schema": {
|
||||||
|
"name": "image_size",
|
||||||
|
"table": "Text_With_Side_Image",
|
||||||
|
"data_type": "character varying",
|
||||||
|
"default_value": "medium",
|
||||||
|
"generation_expression": null,
|
||||||
|
"max_length": 255,
|
||||||
|
"numeric_precision": null,
|
||||||
|
"numeric_scale": null,
|
||||||
|
"is_generated": false,
|
||||||
|
"is_nullable": true,
|
||||||
|
"is_unique": false,
|
||||||
|
"is_indexed": false,
|
||||||
|
"is_primary_key": false,
|
||||||
|
"has_auto_increment": false,
|
||||||
|
"foreign_key_schema": null,
|
||||||
|
"foreign_key_table": null,
|
||||||
|
"foreign_key_column": null,
|
||||||
|
"comment": null
|
||||||
|
},
|
||||||
|
"meta": {
|
||||||
|
"collection": "Text_With_Side_Image",
|
||||||
|
"field": "image_size",
|
||||||
|
"special": null,
|
||||||
|
"interface": "select-dropdown",
|
||||||
|
"options": {
|
||||||
|
"choices": [
|
||||||
|
{
|
||||||
|
"text": "Small",
|
||||||
|
"value": "small"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"text": "Medium",
|
||||||
|
"value": "medium"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"text": "Large",
|
||||||
|
"value": "large"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"icon": "photo_size_select_small"
|
||||||
|
},
|
||||||
|
"display": null,
|
||||||
|
"display_options": null,
|
||||||
|
"readonly": false,
|
||||||
|
"hidden": false,
|
||||||
|
"sort": 10,
|
||||||
|
"width": "full",
|
||||||
|
"translations": null,
|
||||||
|
"note": null,
|
||||||
|
"conditions": null,
|
||||||
|
"required": true,
|
||||||
|
"group": null,
|
||||||
|
"validation": null,
|
||||||
|
"validation_message": null,
|
||||||
|
"searchable": true
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"collection": "Wall_Of_Text",
|
"collection": "Wall_Of_Text",
|
||||||
"field": "id",
|
"field": "id",
|
||||||
@@ -24403,32 +24467,6 @@
|
|||||||
"one_deselect_action": "nullify"
|
"one_deselect_action": "nullify"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"collection": "Search_Engine_Optimisation",
|
|
||||||
"field": "Project_id",
|
|
||||||
"related_collection": "Projects",
|
|
||||||
"schema": {
|
|
||||||
"constraint_name": "search_engine_optimisation_project_id_foreign",
|
|
||||||
"table": "Search_Engine_Optimisation",
|
|
||||||
"column": "Project_id",
|
|
||||||
"foreign_key_schema": "public",
|
|
||||||
"foreign_key_table": "Projects",
|
|
||||||
"foreign_key_column": "id",
|
|
||||||
"on_update": "NO ACTION",
|
|
||||||
"on_delete": "SET NULL"
|
|
||||||
},
|
|
||||||
"meta": {
|
|
||||||
"many_collection": "Search_Engine_Optimisation",
|
|
||||||
"many_field": "Project_id",
|
|
||||||
"one_collection": "Projects",
|
|
||||||
"one_field": "search_engine",
|
|
||||||
"one_collection_field": null,
|
|
||||||
"one_allowed_collections": null,
|
|
||||||
"junction_field": null,
|
|
||||||
"sort_field": null,
|
|
||||||
"one_deselect_action": "nullify"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"collection": "Search_Engine_Optimisation",
|
"collection": "Search_Engine_Optimisation",
|
||||||
"field": "Blog_id",
|
"field": "Blog_id",
|
||||||
@@ -24455,6 +24493,32 @@
|
|||||||
"one_deselect_action": "nullify"
|
"one_deselect_action": "nullify"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"collection": "Search_Engine_Optimisation",
|
||||||
|
"field": "Project_id",
|
||||||
|
"related_collection": "Projects",
|
||||||
|
"schema": {
|
||||||
|
"constraint_name": "search_engine_optimisation_project_id_foreign",
|
||||||
|
"table": "Search_Engine_Optimisation",
|
||||||
|
"column": "Project_id",
|
||||||
|
"foreign_key_schema": "public",
|
||||||
|
"foreign_key_table": "Projects",
|
||||||
|
"foreign_key_column": "id",
|
||||||
|
"on_update": "NO ACTION",
|
||||||
|
"on_delete": "SET NULL"
|
||||||
|
},
|
||||||
|
"meta": {
|
||||||
|
"many_collection": "Search_Engine_Optimisation",
|
||||||
|
"many_field": "Project_id",
|
||||||
|
"one_collection": "Projects",
|
||||||
|
"one_field": "search_engine",
|
||||||
|
"one_collection_field": null,
|
||||||
|
"one_allowed_collections": null,
|
||||||
|
"junction_field": null,
|
||||||
|
"sort_field": null,
|
||||||
|
"one_deselect_action": "nullify"
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"collection": "Search_Engine_Optimisation",
|
"collection": "Search_Engine_Optimisation",
|
||||||
"field": "thumbnail",
|
"field": "thumbnail",
|
||||||
@@ -25625,6 +25689,32 @@
|
|||||||
"one_deselect_action": "nullify"
|
"one_deselect_action": "nullify"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"collection": "Pages_components",
|
||||||
|
"field": "Pages_id",
|
||||||
|
"related_collection": "Pages",
|
||||||
|
"schema": {
|
||||||
|
"constraint_name": "pages_components_pages_id_foreign",
|
||||||
|
"table": "Pages_components",
|
||||||
|
"column": "Pages_id",
|
||||||
|
"foreign_key_schema": "public",
|
||||||
|
"foreign_key_table": "Pages",
|
||||||
|
"foreign_key_column": "id",
|
||||||
|
"on_update": "NO ACTION",
|
||||||
|
"on_delete": "SET NULL"
|
||||||
|
},
|
||||||
|
"meta": {
|
||||||
|
"many_collection": "Pages_components",
|
||||||
|
"many_field": "Pages_id",
|
||||||
|
"one_collection": "Pages",
|
||||||
|
"one_field": "components",
|
||||||
|
"one_collection_field": null,
|
||||||
|
"one_allowed_collections": null,
|
||||||
|
"junction_field": "item",
|
||||||
|
"sort_field": "sort",
|
||||||
|
"one_deselect_action": "nullify"
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"collection": "Pages_components",
|
"collection": "Pages_components",
|
||||||
"field": "item",
|
"field": "item",
|
||||||
@@ -25654,32 +25744,6 @@
|
|||||||
"one_deselect_action": "nullify"
|
"one_deselect_action": "nullify"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"collection": "Pages_components",
|
|
||||||
"field": "Pages_id",
|
|
||||||
"related_collection": "Pages",
|
|
||||||
"schema": {
|
|
||||||
"constraint_name": "pages_components_pages_id_foreign",
|
|
||||||
"table": "Pages_components",
|
|
||||||
"column": "Pages_id",
|
|
||||||
"foreign_key_schema": "public",
|
|
||||||
"foreign_key_table": "Pages",
|
|
||||||
"foreign_key_column": "id",
|
|
||||||
"on_update": "NO ACTION",
|
|
||||||
"on_delete": "SET NULL"
|
|
||||||
},
|
|
||||||
"meta": {
|
|
||||||
"many_collection": "Pages_components",
|
|
||||||
"many_field": "Pages_id",
|
|
||||||
"one_collection": "Pages",
|
|
||||||
"one_field": "components",
|
|
||||||
"one_collection_field": null,
|
|
||||||
"one_allowed_collections": null,
|
|
||||||
"junction_field": "item",
|
|
||||||
"sort_field": "sort",
|
|
||||||
"one_deselect_action": "nullify"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"collection": "Project_Settings",
|
"collection": "Project_Settings",
|
||||||
"field": "user_updated",
|
"field": "user_updated",
|
||||||
|
|||||||
Reference in New Issue
Block a user