chore(mothership): make region non-presentable

This commit is contained in:
Ben Allfree 2025-07-19 01:07:10 +00:00
parent 60307e6ca7
commit d8b2c79563

View File

@ -0,0 +1,50 @@
/// <reference path="../pb_data/types.d.ts" />
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)
})