Files
hudozka/pb/pb_migrations/1775414464_updated_images.js
T
2026-04-12 19:13:24 +03:00

28 lines
632 B
JavaScript

/// <reference path="../pb_data/types.d.ts" />
migrate((app) => {
const collection = app.findCollectionByNameOrId("pbc_3607937828")
// remove field
collection.fields.removeById("number4156564586")
return app.save(collection)
}, (app) => {
const collection = app.findCollectionByNameOrId("pbc_3607937828")
// add field
collection.fields.addAt(5, new Field({
"hidden": false,
"id": "number4156564586",
"max": null,
"min": null,
"name": "size",
"onlyInt": false,
"presentable": false,
"required": false,
"system": false,
"type": "number"
}))
return app.save(collection)
})