37 lines
852 B
JavaScript
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)
|
|
})
|