diff --git a/backend/directus-config/seeds/development/directus/gallery.json b/backend/directus-config/seeds/development/directus/gallery.json new file mode 100644 index 00000000..7bee5394 --- /dev/null +++ b/backend/directus-config/seeds/development/directus/gallery.json @@ -0,0 +1,17 @@ +{ + "collection": "gallery", + "meta": { + "insert_order": 1, + "create": true, + "update": true, + "delete": true, + "preserve_ids": true, + "ignore_on_update": [] + }, + "data": [ + { + "_sync_id": "ea97b565-037c-4d0c-bcec-5e38793a6e7f", + "hideInputLabel": false + } + ] +} \ No newline at end of file diff --git a/backend/directus-config/seeds/development/directus/texts.json b/backend/directus-config/seeds/development/directus/texts.json new file mode 100644 index 00000000..924e38ae --- /dev/null +++ b/backend/directus-config/seeds/development/directus/texts.json @@ -0,0 +1,21 @@ +{ + "collection": "texts", + "meta": { + "insert_order": 1, + "create": true, + "update": true, + "delete": true, + "preserve_ids": true, + "ignore_on_update": [] + }, + "data": [ + { + "_sync_id": "7c25fdf6-d5f2-425a-9a2e-03c5297d10bc", + "dataField": "text", + "heading": null, + "hideWhenEmpty": true, + "showMarkdownHint": true, + "size": "full" + } + ] +} \ No newline at end of file diff --git a/backend/directus-config/seeds/development/manual/type-ui-components.sql b/backend/directus-config/seeds/development/manual/type-ui-components.sql new file mode 100644 index 00000000..eda10195 --- /dev/null +++ b/backend/directus-config/seeds/development/manual/type-ui-components.sql @@ -0,0 +1,26 @@ +-- Type: text+gallery +INSERT INTO public."types_profileTemplate" (collection, id, item, sort, types_id) +SELECT + 'texts', '1', '7c25fdf6-d5f2-425a-9a2e-03c5297d10bc' , '1', types.id +FROM + public.types as types +WHERE + name = 'text+gallery' +ON CONFLICT (id) DO UPDATE + SET collection = excluded.collection, + item = excluded.item, + sort = excluded.sort, + types_id = excluded.types_id; + +INSERT INTO public."types_profileTemplate" (collection, id, item, sort, types_id) +SELECT + 'gallery', '2', 'ea97b565-037c-4d0c-bcec-5e38793a6e7f' , '2', types.id +FROM + public.types as types +WHERE + name = 'text+gallery' +ON CONFLICT (id) DO UPDATE + SET collection = excluded.collection, + item = excluded.item, + sort = excluded.sort, + types_id = excluded.types_id; \ No newline at end of file