| 1 | { |
| 2 | "comment": "Drop iwl_title field from iwl_prefix_from_title index", |
| 3 | "before": { |
| 4 | "name": "iwlinks", |
| 5 | "comment": "Track inline interwiki links", |
| 6 | "columns": [ |
| 7 | { |
| 8 | "name": "iwl_from", |
| 9 | "comment": "page_id of the referring page", |
| 10 | "type": "integer", |
| 11 | "options": { "notnull": true, "unsigned": true, "default": 0 } |
| 12 | }, |
| 13 | { |
| 14 | "name": "iwl_prefix", |
| 15 | "type": "binary", |
| 16 | "comment": "Interwiki prefix code of the target", |
| 17 | "options": { "notnull": true, "length": 32, "default": "" } |
| 18 | }, |
| 19 | { |
| 20 | "name": "iwl_title", |
| 21 | "type": "binary", |
| 22 | "comment": "Title of the target, including namespace", |
| 23 | "options": { "notnull": true, "length": 255, "default": "" } |
| 24 | } |
| 25 | ], |
| 26 | "indexes": [ |
| 27 | { |
| 28 | "name": "iwl_prefix_title_from", |
| 29 | "columns": [ "iwl_prefix", "iwl_title", "iwl_from" ], |
| 30 | "comment": "Index for ApiQueryIWBacklinks", |
| 31 | "unique": false |
| 32 | }, |
| 33 | { |
| 34 | "name": "iwl_prefix_from_title", |
| 35 | "columns": [ "iwl_prefix", "iwl_from", "iwl_title" ], |
| 36 | "comment": "Index for ApiQueryIWLinks", |
| 37 | "unique": false |
| 38 | } |
| 39 | ], |
| 40 | "pk": [ "iwl_from", "iwl_prefix", "iwl_title" ] |
| 41 | }, |
| 42 | "after": { |
| 43 | "name": "iwlinks", |
| 44 | "comment": "Track inline interwiki links", |
| 45 | "columns": [ |
| 46 | { |
| 47 | "name": "iwl_from", |
| 48 | "comment": "page_id of the referring page", |
| 49 | "type": "integer", |
| 50 | "options": { "notnull": true, "unsigned": true, "default": 0 } |
| 51 | }, |
| 52 | { |
| 53 | "name": "iwl_prefix", |
| 54 | "type": "binary", |
| 55 | "comment": "Interwiki prefix code of the target", |
| 56 | "options": { "notnull": true, "length": 32, "default": "" } |
| 57 | }, |
| 58 | { |
| 59 | "name": "iwl_title", |
| 60 | "type": "binary", |
| 61 | "comment": "Title of the target, including namespace", |
| 62 | "options": { "notnull": true, "length": 255, "default": "" } |
| 63 | } |
| 64 | ], |
| 65 | "indexes": [ |
| 66 | { |
| 67 | "name": "iwl_prefix_title_from", |
| 68 | "columns": [ "iwl_prefix", "iwl_title", "iwl_from" ], |
| 69 | "comment": "Index for ApiQueryIWBacklinks", |
| 70 | "unique": false |
| 71 | } |
| 72 | ], |
| 73 | "pk": [ "iwl_from", "iwl_prefix", "iwl_title" ] |
| 74 | } |
| 75 | } |