From d1e2dbaab1ab9d314118e01d337d6c389fd1381d Mon Sep 17 00:00:00 2001 From: Anton Tranelis Date: Fri, 12 Sep 2025 21:35:03 +0200 Subject: [PATCH] added profilecomponentes to type --- .../development/sql/type-ui-components.sql | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/backend/directus-config/development/sql/type-ui-components.sql b/backend/directus-config/development/sql/type-ui-components.sql index 4d3c8fc3..3e5828ef 100644 --- a/backend/directus-config/development/sql/type-ui-components.sql +++ b/backend/directus-config/development/sql/type-ui-components.sql @@ -64,3 +64,30 @@ ON CONFLICT (id) DO UPDATE item = excluded.item, sort = excluded.sort, types_id = excluded.types_id; + +-- Type: text+gallery +INSERT INTO public."types_profileTemplate" (collection, id, item, sort, types_id) +SELECT + 'texts', '6', 'c960bbfc-5d98-4f6d-ae44-7a2b63d3359b' , '1', types.id +FROM + public.types as types +WHERE + name = 'user: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', '7', '6d18b616-6f4f-4987-9860-681b88bdc068' , '2', types.id +FROM + public.types as types +WHERE + name = 'user: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