| 1 | /// <reference path="../pb_data/types.d.ts" /> |
| 2 | migrate((app) => |
| 3 | const collection = |
| 4 | |
| 5 | // update field |
| 6 | collection.fields.addAt |
| 7 | "hidden": false, |
| 8 | "id": "select2063623452", |
| 9 | "maxSelect": 1, |
| 10 | "name": "status", |
| 11 | "presentable": false, |
| 12 | "required": false, |
| 13 | "system": false, |
| 14 | "type": "select", |
| 15 | "values": [ |
| 16 | "scheduled", |
| 17 | "active", |
| 18 | "landed", |
| 19 | "cancelled", |
| 20 | "incident", |
| 21 | "diverted" |
| 22 | ] |
| 23 | })) |
| 24 | |
| 25 | return app.save |
| 26 | }, (app) => |
| 27 | const collection = |
| 28 | |
| 29 | // update field |
| 30 | collection.fields.addAt |
| 31 | "hidden": false, |
| 32 | "id": "select2063623452", |
| 33 | "maxSelect": 1, |
| 34 | "name": "status", |
| 35 | "presentable": false, |
| 36 | "required": false, |
| 37 | "system": false, |
| 38 | "type": "select", |
| 39 | "values": [ |
| 40 | "active" |
| 41 | ] |
| 42 | })) |
| 43 | |
| 44 | return app.save |
| 45 | }) |