55 lines
1.1 KiB
JavaScript
55 lines
1.1 KiB
JavaScript
/// <reference path="../pb_data/types.d.ts" />
|
|
migrate((app) => {
|
|
const collection = app.findCollectionByNameOrId("pbc_3332084752")
|
|
|
|
// update field
|
|
collection.fields.addAt(3, new Field({
|
|
"hidden": false,
|
|
"id": "select2363381545",
|
|
"maxSelect": 1,
|
|
"name": "type",
|
|
"presentable": false,
|
|
"required": false,
|
|
"system": false,
|
|
"type": "select",
|
|
"values": [
|
|
"location",
|
|
"monster",
|
|
"npc",
|
|
"scene",
|
|
"secret",
|
|
"session",
|
|
"treasure",
|
|
"thread",
|
|
"front"
|
|
]
|
|
}))
|
|
|
|
return app.save(collection)
|
|
}, (app) => {
|
|
const collection = app.findCollectionByNameOrId("pbc_3332084752")
|
|
|
|
// update field
|
|
collection.fields.addAt(3, new Field({
|
|
"hidden": false,
|
|
"id": "select2363381545",
|
|
"maxSelect": 1,
|
|
"name": "type",
|
|
"presentable": false,
|
|
"required": false,
|
|
"system": false,
|
|
"type": "select",
|
|
"values": [
|
|
"location",
|
|
"monster",
|
|
"npc",
|
|
"scene",
|
|
"secret",
|
|
"session",
|
|
"treasure"
|
|
]
|
|
}))
|
|
|
|
return app.save(collection)
|
|
})
|