diff --git a/packages/pockethost/src/mothership-app/pb_migrations/1752887388_updated_domains.js b/packages/pockethost/src/mothership-app/pb_migrations/1752887388_updated_domains.js new file mode 100644 index 00000000..2c8af89d --- /dev/null +++ b/packages/pockethost/src/mothership-app/pb_migrations/1752887388_updated_domains.js @@ -0,0 +1,44 @@ +/// +migrate((db) => { + const dao = new Dao(db) + const collection = dao.findCollectionByNameOrId("jw1wz9nmkvnhcm6") + + // update + collection.schema.addField(new SchemaField({ + "system": false, + "id": "wn3oncif", + "name": "domain", + "type": "text", + "required": false, + "presentable": true, + "unique": false, + "options": { + "min": null, + "max": null, + "pattern": "" + } + })) + + return dao.saveCollection(collection) +}, (db) => { + const dao = new Dao(db) + const collection = dao.findCollectionByNameOrId("jw1wz9nmkvnhcm6") + + // update + collection.schema.addField(new SchemaField({ + "system": false, + "id": "wn3oncif", + "name": "domain", + "type": "text", + "required": false, + "presentable": false, + "unique": false, + "options": { + "min": null, + "max": null, + "pattern": "" + } + })) + + return dao.saveCollection(collection) +})