type event seed using flex layout (#355)

This commit is contained in:
Ulf Gebhardt 2025-09-04 13:01:37 +01:00 committed by GitHub
parent 6793a33fac
commit 55f9bb514b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 70 additions and 2 deletions

View File

@ -12,6 +12,10 @@
{
"_sync_id": "ea97b565-037c-4d0c-bcec-5e38793a6e7f",
"hideInputLabel": false
},
{
"_sync_id": "b0c52d6e-b3d2-4e3b-89e2-065be324e27b",
"hideInputLabel": false
}
]
}

View File

@ -0,0 +1,16 @@
{
"collection": "startEnd",
"meta": {
"insert_order": 1,
"create": true,
"update": true,
"delete": true,
"preserve_ids": true,
"ignore_on_update": []
},
"data": [
{
"_sync_id": "0b5e5f0a-76a4-407f-84ab-2fd718965909"
}
]
}

View File

@ -16,6 +16,14 @@
"hideWhenEmpty": true,
"showMarkdownHint": true,
"size": "full"
},
{
"_sync_id": "94f6af1d-77e5-49ed-937b-6b9addc4f8ac",
"dataField": "text",
"heading": null,
"hideWhenEmpty": true,
"showMarkdownHint": true,
"size": "full"
}
]
}

View File

@ -28,7 +28,7 @@
"date_created": "2025-01-01T00:00:00.000Z",
"user_updated": null,
"date_updated": null,
"template": "tabs",
"template": "flex",
"show_text": true,
"show_profile_button" : true,
"show_start_end" : true

View File

@ -23,4 +23,44 @@ ON CONFLICT (id) DO UPDATE
SET collection = excluded.collection,
item = excluded.item,
sort = excluded.sort,
types_id = excluded.types_id;
types_id = excluded.types_id;
-- Type: event
INSERT INTO public."types_profileTemplate" (collection, id, item, sort, types_id)
SELECT
'startEnd', '1', '0b5e5f0a-76a4-407f-84ab-2fd718965909' , '1', types.id
FROM
public.types as types
WHERE
name = 'event'
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
'texts', '2', '94f6af1d-77e5-49ed-937b-6b9addc4f8ac' , '2', types.id
FROM
public.types as types
WHERE
name = 'event'
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', '3', 'b0c52d6e-b3d2-4e3b-89e2-065be324e27b' , '3', types.id
FROM
public.types as types
WHERE
name = 'event'
ON CONFLICT (id) DO UPDATE
SET collection = excluded.collection,
item = excluded.item,
sort = excluded.sort,
types_id = excluded.types_id;