astro_minivan/backend/pb_migrations/1766058321_updated_about_values.js
2026-03-29 17:24:16 +05:00

25 lines
596 B
JavaScript

/// <reference path="../pb_data/types.d.ts" />
migrate((app) => {
const collection = app.findCollectionByNameOrId("pbc_2125634568")
// remove field
collection.fields.removeById("json3480750588")
return app.save(collection)
}, (app) => {
const collection = app.findCollectionByNameOrId("pbc_2125634568")
// add field
collection.fields.addAt(2, new Field({
"hidden": false,
"id": "json3480750588",
"maxSize": 0,
"name": "values_items",
"presentable": false,
"required": false,
"system": false,
"type": "json"
}))
return app.save(collection)
})