[PIE-6] Add first (non-final) (temporary-ish) stylings #5

Merged
breadone merged 12 commits from PIE-6 into main 2025-08-12 23:39:33 +12:00
Showing only changes of commit d746bb473f - Show all commits

View File

@ -0,0 +1,40 @@
/// <reference path="../pb_data/types.d.ts" />
migrate((app) => {
const collection = app.findCollectionByNameOrId("pbc_842702175")
// update field
collection.fields.addAt(5, new Field({
"cascadeDelete": false,
"collectionId": "pbc_3607937828",
"hidden": false,
"id": "relation3760176746",
"maxSelect": 999,
"minSelect": 0,
"name": "images",
"presentable": false,
"required": false,
"system": false,
"type": "relation"
}))
return app.save(collection)
}, (app) => {
const collection = app.findCollectionByNameOrId("pbc_842702175")
// update field
collection.fields.addAt(5, new Field({
"cascadeDelete": false,
"collectionId": "pbc_3607937828",
"hidden": false,
"id": "relation3760176746",
"maxSelect": 1,
"minSelect": 0,
"name": "images",
"presentable": false,
"required": false,
"system": false,
"type": "relation"
}))
return app.save(collection)
})