mirror of
https://github.com/TeamWiseFlow/wiseflow.git
synced 2025-02-02 18:28:46 +08:00
43 lines
946 B
JavaScript
43 lines
946 B
JavaScript
/// <reference path="../pb_data/types.d.ts" />
|
|
migrate((app) => {
|
|
const collection = app.findCollectionByNameOrId("pbc_3385864241")
|
|
|
|
// update field
|
|
collection.fields.addAt(1, new Field({
|
|
"autogeneratePattern": "",
|
|
"hidden": false,
|
|
"id": "text2695655862",
|
|
"max": 0,
|
|
"min": 0,
|
|
"name": "focuspoint",
|
|
"pattern": "",
|
|
"presentable": false,
|
|
"primaryKey": false,
|
|
"required": true,
|
|
"system": false,
|
|
"type": "text"
|
|
}))
|
|
|
|
return app.save(collection)
|
|
}, (app) => {
|
|
const collection = app.findCollectionByNameOrId("pbc_3385864241")
|
|
|
|
// update field
|
|
collection.fields.addAt(1, new Field({
|
|
"autogeneratePattern": "",
|
|
"hidden": false,
|
|
"id": "text2695655862",
|
|
"max": 0,
|
|
"min": 0,
|
|
"name": "focuspoint",
|
|
"pattern": "",
|
|
"presentable": false,
|
|
"primaryKey": false,
|
|
"required": false,
|
|
"system": false,
|
|
"type": "text"
|
|
}))
|
|
|
|
return app.save(collection)
|
|
})
|