From d746bb473f77d8330175158bf5b7d6b9b6a684e4 Mon Sep 17 00:00:00 2001 From: june Date: Tue, 12 Aug 2025 23:01:15 +1200 Subject: [PATCH] stupid --- .../1754996268_updated_recipes.js | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 api/pb_migrations/1754996268_updated_recipes.js diff --git a/api/pb_migrations/1754996268_updated_recipes.js b/api/pb_migrations/1754996268_updated_recipes.js new file mode 100644 index 0000000..d98cda1 --- /dev/null +++ b/api/pb_migrations/1754996268_updated_recipes.js @@ -0,0 +1,40 @@ +/// +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) +})