mirror of
https://github.com/TeamWiseFlow/wiseflow.git
synced 2025-02-02 18:28:46 +08:00
30 lines
676 B
JavaScript
30 lines
676 B
JavaScript
/// <reference path="../pb_data/types.d.ts" />
|
|
migrate((app) => {
|
|
const collection = app.findCollectionByNameOrId("pbc_629947526")
|
|
|
|
// add field
|
|
collection.fields.addAt(6, new Field({
|
|
"autogeneratePattern": "",
|
|
"hidden": false,
|
|
"id": "text4002551580",
|
|
"max": 0,
|
|
"min": 0,
|
|
"name": "url_title",
|
|
"pattern": "",
|
|
"presentable": false,
|
|
"primaryKey": false,
|
|
"required": false,
|
|
"system": false,
|
|
"type": "text"
|
|
}))
|
|
|
|
return app.save(collection)
|
|
}, (app) => {
|
|
const collection = app.findCollectionByNameOrId("pbc_629947526")
|
|
|
|
// remove field
|
|
collection.fields.removeById("text4002551580")
|
|
|
|
return app.save(collection)
|
|
})
|