49 lines
1.1 KiB
JavaScript
49 lines
1.1 KiB
JavaScript
/// <reference path="../pb_data/types.d.ts" />
|
|
migrate((app) => {
|
|
const collection = app.findCollectionByNameOrId("pbc_144770472")
|
|
|
|
// remove field
|
|
collection.fields.removeById("file2376425770")
|
|
|
|
// remove field
|
|
collection.fields.removeById("file4278982190")
|
|
|
|
return app.save(collection)
|
|
}, (app) => {
|
|
const collection = app.findCollectionByNameOrId("pbc_144770472")
|
|
|
|
// add field
|
|
collection.fields.addAt(18, new Field({
|
|
"hidden": false,
|
|
"id": "file2376425770",
|
|
"maxSelect": 1,
|
|
"maxSize": 0,
|
|
"mimeTypes": [],
|
|
"name": "funscriptVibrate",
|
|
"presentable": false,
|
|
"protected": false,
|
|
"required": false,
|
|
"system": false,
|
|
"thumbs": [],
|
|
"type": "file"
|
|
}))
|
|
|
|
// add field
|
|
collection.fields.addAt(19, new Field({
|
|
"hidden": false,
|
|
"id": "file4278982190",
|
|
"maxSelect": 1,
|
|
"maxSize": 0,
|
|
"mimeTypes": [],
|
|
"name": "funscriptThrust",
|
|
"presentable": false,
|
|
"protected": false,
|
|
"required": false,
|
|
"system": false,
|
|
"thumbs": [],
|
|
"type": "file"
|
|
}))
|
|
|
|
return app.save(collection)
|
|
})
|