| 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": "text72251570", |
| 25 | "max": 0, |
| 26 | "min": 0, |
| 27 | "name": "ident", |
| 28 | "pattern": "", |
| 29 | "presentable": false, |
| 30 | "primaryKey": false, |
| 31 | "required": false, |
| 32 | "system": false, |
| 33 | "type": "text" |
| 34 | }, |
| 35 | { |
| 36 | "autogeneratePattern": "", |
| 37 | "hidden": false, |
| 38 | "id": "text2363381545", |
| 39 | "max": 0, |
| 40 | "min": 0, |
| 41 | "name": "type", |
| 42 | "pattern": "", |
| 43 | "presentable": false, |
| 44 | "primaryKey": false, |
| 45 | "required": false, |
| 46 | "system": false, |
| 47 | "type": "text" |
| 48 | }, |
| 49 | { |
| 50 | "autogeneratePattern": "", |
| 51 | "hidden": false, |
| 52 | "id": "text1009404545", |
| 53 | "max": 0, |
| 54 | "min": 0, |
| 55 | "name": "elevation", |
| 56 | "pattern": "", |
| 57 | "presentable": false, |
| 58 | "primaryKey": false, |
| 59 | "required": false, |
| 60 | "system": false, |
| 61 | "type": "text" |
| 62 | }, |
| 63 | { |
| 64 | "autogeneratePattern": "", |
| 65 | "hidden": false, |
| 66 | "id": "text1824984188", |
| 67 | "max": 0, |
| 68 | "min": 0, |
| 69 | "name": "continent", |
| 70 | "pattern": "", |
| 71 | "presentable": false, |
| 72 | "primaryKey": false, |
| 73 | "required": false, |
| 74 | "system": false, |
| 75 | "type": "text" |
| 76 | }, |
| 77 | { |
| 78 | "autogeneratePattern": "", |
| 79 | "hidden": false, |
| 80 | "id": "text2627968717", |
| 81 | "max": 0, |
| 82 | "min": 0, |
| 83 | "name": "iso_country", |
| 84 | "pattern": "", |
| 85 | "presentable": false, |
| 86 | "primaryKey": false, |
| 87 | "required": false, |
| 88 | "system": false, |
| 89 | "type": "text" |
| 90 | }, |
| 91 | { |
| 92 | "autogeneratePattern": "", |
| 93 | "hidden": false, |
| 94 | "id": "text1705034560", |
| 95 | "max": 0, |
| 96 | "min": 0, |
| 97 | "name": "iso_region", |
| 98 | "pattern": "", |
| 99 | "presentable": false, |
| 100 | "primaryKey": false, |
| 101 | "required": false, |
| 102 | "system": false, |
| 103 | "type": "text" |
| 104 | }, |
| 105 | { |
| 106 | "autogeneratePattern": "", |
| 107 | "hidden": false, |
| 108 | "id": "text3337971240", |
| 109 | "max": 0, |
| 110 | "min": 0, |
| 111 | "name": "municipality", |
| 112 | "pattern": "", |
| 113 | "presentable": false, |
| 114 | "primaryKey": false, |
| 115 | "required": false, |
| 116 | "system": false, |
| 117 | "type": "text" |
| 118 | }, |
| 119 | { |
| 120 | "autogeneratePattern": "", |
| 121 | "hidden": false, |
| 122 | "id": "text851471889", |
| 123 | "max": 0, |
| 124 | "min": 0, |
| 125 | "name": "gps_code", |
| 126 | "pattern": "", |
| 127 | "presentable": false, |
| 128 | "primaryKey": false, |
| 129 | "required": false, |
| 130 | "system": false, |
| 131 | "type": "text" |
| 132 | }, |
| 133 | { |
| 134 | "autogeneratePattern": "", |
| 135 | "hidden": false, |
| 136 | "id": "text1024793645", |
| 137 | "max": 0, |
| 138 | "min": 0, |
| 139 | "name": "iata_code", |
| 140 | "pattern": "", |
| 141 | "presentable": false, |
| 142 | "primaryKey": false, |
| 143 | "required": false, |
| 144 | "system": false, |
| 145 | "type": "text" |
| 146 | }, |
| 147 | { |
| 148 | "autogeneratePattern": "", |
| 149 | "hidden": false, |
| 150 | "id": "text1258969675", |
| 151 | "max": 0, |
| 152 | "min": 0, |
| 153 | "name": "local_code", |
| 154 | "pattern": "", |
| 155 | "presentable": false, |
| 156 | "primaryKey": false, |
| 157 | "required": false, |
| 158 | "system": false, |
| 159 | "type": "text" |
| 160 | }, |
| 161 | { |
| 162 | "autogeneratePattern": "", |
| 163 | "hidden": false, |
| 164 | "id": "text2499937429", |
| 165 | "max": 0, |
| 166 | "min": 0, |
| 167 | "name": "lat", |
| 168 | "pattern": "", |
| 169 | "presentable": false, |
| 170 | "primaryKey": false, |
| 171 | "required": false, |
| 172 | "system": false, |
| 173 | "type": "text" |
| 174 | }, |
| 175 | { |
| 176 | "autogeneratePattern": "", |
| 177 | "hidden": false, |
| 178 | "id": "text999795048", |
| 179 | "max": 0, |
| 180 | "min": 0, |
| 181 | "name": "long", |
| 182 | "pattern": "", |
| 183 | "presentable": false, |
| 184 | "primaryKey": false, |
| 185 | "required": false, |
| 186 | "system": false, |
| 187 | "type": "text" |
| 188 | }, |
| 189 | { |
| 190 | "hidden": false, |
| 191 | "id": "autodate2990389176", |
| 192 | "name": "created", |
| 193 | "onCreate": true, |
| 194 | "onUpdate": false, |
| 195 | "presentable": false, |
| 196 | "system": false, |
| 197 | "type": "autodate" |
| 198 | }, |
| 199 | { |
| 200 | "hidden": false, |
| 201 | "id": "autodate3332085495", |
| 202 | "name": "updated", |
| 203 | "onCreate": true, |
| 204 | "onUpdate": true, |
| 205 | "presentable": false, |
| 206 | "system": false, |
| 207 | "type": "autodate" |
| 208 | } |
| 209 | ], |
| 210 | "id": "pbc_777299321", |
| 211 | "indexes": [], |
| 212 | "listRule": null, |
| 213 | "name": "airports", |
| 214 | "system": false, |
| 215 | "type": "base", |
| 216 | "updateRule": null, |
| 217 | "viewRule": null |
| 218 | }); |
| 219 | |
| 220 | return app.save |
| 221 | }, (app) => |
| 222 | const collection = |
| 223 | |
| 224 | return app.delete |
| 225 | }) |