brawlset/backend/pb_migrations/1744149166_updated_carte.js

25 lines
607 B
JavaScript

/// <reference path="../pb_data/types.d.ts" />
migrate((app) => {
const collection = app.findCollectionByNameOrId("pbc_1905410326")
// remove field
collection.fields.removeById("autodate3332085495")
return app.save(collection)
}, (app) => {
const collection = app.findCollectionByNameOrId("pbc_1905410326")
// add field
collection.fields.addAt(16, new Field({
"hidden": false,
"id": "autodate3332085495",
"name": "updated",
"onCreate": true,
"onUpdate": true,
"presentable": false,
"system": false,
"type": "autodate"
}))
return app.save(collection)
})