| 1 | /// <reference path="../pb_data/types.d.ts" /> |
| 2 | migrate((app) => |
| 3 | const collection = |
| 4 | "createRule": null, |
| 5 | "deleteRule": null, |
| 6 | "fields": [ |
| 7 | { |
| 8 | "autogeneratePattern": "[a-z0-9]{15}", |
| 9 | "hidden": false, |
| 10 | "id": "text3208210256", |
| 11 | "max": 15, |
| 12 | "min": 15, |
| 13 | "name": "id", |
| 14 | "pattern": "^[a-z0-9]+$", |
| 15 | "presentable": false, |
| 16 | "primaryKey": true, |
| 17 | "required": true, |
| 18 | "system": true, |
| 19 | "type": "text" |
| 20 | }, |
| 21 | { |
| 22 | "autogeneratePattern": "", |
| 23 | "hidden": false, |
| 24 | "id": "text1579384326", |
| 25 | "max": 0, |
| 26 | "min": 0, |
| 27 | "name": "name", |
| 28 | "pattern": "", |
| 29 | "presentable": false, |
| 30 | "primaryKey": false, |
| 31 | "required": true, |
| 32 | "system": false, |
| 33 | "type": "text" |
| 34 | }, |
| 35 | { |
| 36 | "autogeneratePattern": "", |
| 37 | "hidden": false, |
| 38 | "id": "text2349872323", |
| 39 | "max": 0, |
| 40 | "min": 3, |
| 41 | "name": "icao", |
| 42 | "pattern": "", |
| 43 | "presentable": false, |
| 44 | "primaryKey": false, |
| 45 | "required": true, |
| 46 | "system": false, |
| 47 | "type": "text" |
| 48 | }, |
| 49 | { |
| 50 | "autogeneratePattern": "", |
| 51 | "hidden": false, |
| 52 | "id": "text1603873726", |
| 53 | "max": 0, |
| 54 | "min": 2, |
| 55 | "name": "iata", |
| 56 | "pattern": "", |
| 57 | "presentable": false, |
| 58 | "primaryKey": false, |
| 59 | "required": false, |
| 60 | "system": false, |
| 61 | "type": "text" |
| 62 | }, |
| 63 | { |
| 64 | "hidden": false, |
| 65 | "id": "autodate2990389176", |
| 66 | "name": "created", |
| 67 | "onCreate": true, |
| 68 | "onUpdate": false, |
| 69 | "presentable": false, |
| 70 | "system": false, |
| 71 | "type": "autodate" |
| 72 | }, |
| 73 | { |
| 74 | "hidden": false, |
| 75 | "id": "autodate3332085495", |
| 76 | "name": "updated", |
| 77 | "onCreate": true, |
| 78 | "onUpdate": true, |
| 79 | "presentable": false, |
| 80 | "system": false, |
| 81 | "type": "autodate" |
| 82 | } |
| 83 | ], |
| 84 | "id": "pbc_3905616162", |
| 85 | "indexes": [], |
| 86 | "listRule": null, |
| 87 | "name": "airlines", |
| 88 | "system": false, |
| 89 | "type": "base", |
| 90 | "updateRule": null, |
| 91 | "viewRule": null |
| 92 | }); |
| 93 | |
| 94 | return app.save |
| 95 | }, (app) => |
| 96 | const collection = |
| 97 | |
| 98 | return app.delete |
| 99 | }) |