seed text+gallery type (#351)

This commit is contained in:
Ulf Gebhardt 2025-09-03 15:13:22 +01:00 committed by GitHub
parent 31eb3ed000
commit 97f50c2d9a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 64 additions and 0 deletions

View File

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

View File

@ -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"
}
]
}

View File

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