| 1 | /// <reference path="../pb_data/types.d.ts" /> |
| 2 | migrate((app) => |
| 3 | const collection = |
| 4 | |
| 5 | // add field |
| 6 | collection.fields.addAt |
| 7 | "hidden": false, |
| 8 | "id": "json1129633261", |
| 9 | "maxSize": 0, |
| 10 | "name": "greatCircleDistance", |
| 11 | "presentable": false, |
| 12 | "required": false, |
| 13 | "system": false, |
| 14 | "type": "json" |
| 15 | })) |
| 16 | |
| 17 | return app.save |
| 18 | }, (app) => |
| 19 | const collection = |
| 20 | |
| 21 | // remove field |
| 22 | collection.fields.removeById |
| 23 | |
| 24 | return app.save |
| 25 | }) |