Files
vitrify-me/apps/pocketbase/pb_migrations/1756204860_updated_bookings.js
2025-08-26 16:49:54 +04:00

37 lines
852 B
JavaScript

/// <reference path="../pb_data/types.d.ts" />
migrate((app) => {
const collection = app.findCollectionByNameOrId("pbc_986407980")
// update field
collection.fields.addAt(7, new Field({
"exceptDomains": null,
"hidden": false,
"id": "email698812751",
"name": "customer_email",
"onlyDomains": null,
"presentable": false,
"required": true,
"system": false,
"type": "email"
}))
return app.save(collection)
}, (app) => {
const collection = app.findCollectionByNameOrId("pbc_986407980")
// update field
collection.fields.addAt(7, new Field({
"exceptDomains": null,
"hidden": false,
"id": "email698812751",
"name": "customer_email",
"onlyDomains": null,
"presentable": false,
"required": false,
"system": false,
"type": "email"
}))
return app.save(collection)
})