diff --git a/pocketbase/pb_migrations/1737037369_updated_pages.js b/pocketbase/pb_migrations/1737037369_updated_pages.js new file mode 100644 index 0000000..f9ad43b --- /dev/null +++ b/pocketbase/pb_migrations/1737037369_updated_pages.js @@ -0,0 +1,46 @@ +/// +migrate((app) => { + const collection = app.findCollectionByNameOrId("pbc_3945946014") + + // update field + collection.fields.addAt(1, new Field({ + "hidden": false, + "id": "file2359244304", + "maxSelect": 1, + "maxSize": 1073741824000, + "mimeTypes": [], + "name": "file", + "presentable": false, + "protected": false, + "required": true, + "system": false, + "thumbs": [ + "400x0" + ], + "type": "file" + })) + + return app.save(collection) +}, (app) => { + const collection = app.findCollectionByNameOrId("pbc_3945946014") + + // update field + collection.fields.addAt(1, new Field({ + "hidden": false, + "id": "file2359244304", + "maxSelect": 1, + "maxSize": 0, + "mimeTypes": [], + "name": "file", + "presentable": false, + "protected": false, + "required": true, + "system": false, + "thumbs": [ + "400x0" + ], + "type": "file" + })) + + return app.save(collection) +})