mirror of
https://github.com/utopia-os/utopia-ui.git
synced 2025-12-13 07:46:10 +00:00
seed text+gallery type (#351)
This commit is contained in:
parent
31eb3ed000
commit
97f50c2d9a
@ -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
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@ -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"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@ -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;
|
||||||
Loading…
x
Reference in New Issue
Block a user