Files
gitlab-instance-0a899031_no…/pb_migrations/1760629212_updated_city.js
eric be7f773e79 s
2025-10-16 15:58:07 +00:00

33 lines
743 B
JavaScript

/// <reference path="../pb_data/types.d.ts" />
migrate((app) => {
const collection = app.findCollectionByNameOrId("pbc_173434244")
// update field
collection.fields.addAt(3, new Field({
"hidden": false,
"id": "geoPoint1542800728",
"name": "geo",
"presentable": false,
"required": false,
"system": false,
"type": "geoPoint"
}))
return app.save(collection)
}, (app) => {
const collection = app.findCollectionByNameOrId("pbc_173434244")
// update field
collection.fields.addAt(3, new Field({
"hidden": false,
"id": "geoPoint1542800728",
"name": "field",
"presentable": false,
"required": false,
"system": false,
"type": "geoPoint"
}))
return app.save(collection)
})