diff --git a/packages/pockethost/src/mothership-app/pb_migrations/1752818738_updated_instances.js b/packages/pockethost/src/mothership-app/pb_migrations/1752818738_updated_instances.js new file mode 100644 index 00000000..1e3ef420 --- /dev/null +++ b/packages/pockethost/src/mothership-app/pb_migrations/1752818738_updated_instances.js @@ -0,0 +1,50 @@ +/// +migrate((db) => { + const dao = new Dao(db) + const collection = dao.findCollectionByNameOrId("etae8tuiaxl6xfv") + + // update + collection.schema.addField(new SchemaField({ + "system": false, + "id": "p7f4wlm5", + "name": "region", + "type": "select", + "required": false, + "presentable": false, + "unique": false, + "options": { + "maxSelect": 1, + "values": [ + "sfo-1", + "sfo-2", + "fra-1" + ] + } + })) + + return dao.saveCollection(collection) +}, (db) => { + const dao = new Dao(db) + const collection = dao.findCollectionByNameOrId("etae8tuiaxl6xfv") + + // update + collection.schema.addField(new SchemaField({ + "system": false, + "id": "p7f4wlm5", + "name": "region", + "type": "select", + "required": false, + "presentable": true, + "unique": false, + "options": { + "maxSelect": 1, + "values": [ + "sfo-1", + "sfo-2", + "fra-1" + ] + } + })) + + return dao.saveCollection(collection) +})