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

35 lines
765 B
JavaScript

/// <reference path="../pb_data/types.d.ts" />
migrate((app) => {
const collection = app.findCollectionByNameOrId("pbc_1125843985")
// update field
collection.fields.addAt(7, new Field({
"hidden": false,
"id": "json4274335913",
"maxSize": 0,
"name": "doc",
"presentable": false,
"required": true,
"system": false,
"type": "json"
}))
return app.save(collection)
}, (app) => {
const collection = app.findCollectionByNameOrId("pbc_1125843985")
// update field
collection.fields.addAt(7, new Field({
"hidden": false,
"id": "json4274335913",
"maxSize": 0,
"name": "content",
"presentable": false,
"required": true,
"system": false,
"type": "json"
}))
return app.save(collection)
})