From d8b2c795639b6ca357e274a1559a86ce50f31631 Mon Sep 17 00:00:00 2001 From: Ben Allfree Date: Sat, 19 Jul 2025 01:07:10 +0000 Subject: [PATCH] chore(mothership): make region non-presentable --- .../1752818738_updated_instances.js | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 packages/pockethost/src/mothership-app/pb_migrations/1752818738_updated_instances.js 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) +})