mirror of
https://github.com/TeamWiseFlow/wiseflow.git
synced 2025-01-23 19:00:26 +08:00
40 lines
872 B
JavaScript
40 lines
872 B
JavaScript
|
/// <reference path="../pb_data/types.d.ts" />
|
||
|
migrate((app) => {
|
||
|
const collection = app.findCollectionByNameOrId("pbc_629947526")
|
||
|
|
||
|
// add field
|
||
|
collection.fields.addAt(4, new Field({
|
||
|
"exceptDomains": [],
|
||
|
"hidden": false,
|
||
|
"id": "url4101391790",
|
||
|
"name": "url",
|
||
|
"onlyDomains": [],
|
||
|
"presentable": false,
|
||
|
"required": true,
|
||
|
"system": false,
|
||
|
"type": "url"
|
||
|
}))
|
||
|
|
||
|
// add field
|
||
|
collection.fields.addAt(5, new Field({
|
||
|
"hidden": false,
|
||
|
"id": "file1486429761",
|
||
|
"maxSelect": 1,
|
||
|
"maxSize": 0,
|
||
|
"mimeTypes": [],
|
||
|
"name": "screenshot",
|
||
|
"presentable": false,
|
||
|
"protected": false,
|
||
|
"required": false,
|
||
|
"system": false,
|
||
|
"thumbs": [],
|
||
|
"type": "file"
|
||
|
}))
|
||
|
|
||
|
return app.save(collection)
|
||
|
}, (app) => {
|
||
|
const collection = app.findCollectionByNameOrId("pbc_629947526")
|
||
|
|
||
|
return app.save(collection)
|
||
|
})
|