| 1 | { |
| 2 | "comment": "Drop change_tag.ct_tag field (T185355)", |
| 3 | "before": { |
| 4 | "name": "change_tag", |
| 5 | "comment": "A table to track tags for revisions, logs and recent changes", |
| 6 | "columns": [ |
| 7 | { |
| 8 | "name": "ct_id", |
| 9 | "type": "integer", |
| 10 | "options": { "unsigned": true, "notnull": true, "autoincrement": true } |
| 11 | }, |
| 12 | { |
| 13 | "name": "ct_rc_id", |
| 14 | "comment": "RCID for the change", |
| 15 | "type": "integer", |
| 16 | "options": { "unsigned": true, "notnull": false, "default": null } |
| 17 | }, |
| 18 | { |
| 19 | "name": "ct_log_id", |
| 20 | "comment": "LOGID for the change", |
| 21 | "type": "integer", |
| 22 | "options": { "unsigned": true, "notnull": false, "default": null } |
| 23 | }, |
| 24 | { |
| 25 | "name": "ct_rev_id", |
| 26 | "comment": "REVID for the change", |
| 27 | "type": "integer", |
| 28 | "options": { "unsigned": true, "notnull": false, "default": null } |
| 29 | }, |
| 30 | { |
| 31 | "name": "ct_tag", |
| 32 | "comment": "Tag applied, this will go away and be replaced with ct_tag_id", |
| 33 | "type": "string", |
| 34 | "options": { "length": 255, "notnull": true, "default": "" } |
| 35 | }, |
| 36 | { |
| 37 | "name": "ct_params", |
| 38 | "comment": "Parameters for the tag; used by some extensions", |
| 39 | "type": "blob", |
| 40 | "options": { "length": 65530, "notnull": false, "default": null } |
| 41 | }, |
| 42 | { |
| 43 | "name": "ct_tag_id", |
| 44 | "comment": "Foreign key to change_tag_def row", |
| 45 | "type": "integer", |
| 46 | "options": { "unsigned": false, "notnull": true } |
| 47 | } |
| 48 | ], |
| 49 | "indexes": [ |
| 50 | { "name": "change_tag_rc_tag_id", "columns": [ "ct_rc_id", "ct_tag_id" ], "unique": true }, |
| 51 | { "name": "change_tag_log_tag_id", "columns": [ "ct_log_id", "ct_tag_id" ], "unique": true }, |
| 52 | { "name": "change_tag_rev_tag_id", "columns": [ "ct_rev_id", "ct_tag_id" ], "unique": true }, |
| 53 | { "name": "change_tag_rc_tag_nonuniq", "columns": [ "ct_rc_id", "ct_tag" ], "unique": true }, |
| 54 | { "name": "change_tag_log_tag_nonuniq", "columns": [ "ct_log_id", "ct_tag" ], "unique": true }, |
| 55 | { "name": "change_tag_rev_tag_nonuniq", "columns": [ "ct_rev_id", "ct_tag" ], "unique": true }, |
| 56 | { |
| 57 | "name": "change_tag_tag_id", |
| 58 | "comment": "Covering index, so we can pull all the info only out of the index.", |
| 59 | "columns": [ "ct_tag", "ct_rc_id", "ct_rev_id", "ct_log_id" ], |
| 60 | "unique": false |
| 61 | }, |
| 62 | { |
| 63 | "name": "change_tag_tag_id_id", |
| 64 | "comment": "Covering index, so we can pull all the info only out of the index.", |
| 65 | "columns": [ "ct_tag_id", "ct_rc_id", "ct_rev_id", "ct_log_id" ], |
| 66 | "unique": false |
| 67 | } |
| 68 | ], |
| 69 | "pk": [ "ct_id" ] |
| 70 | }, |
| 71 | "after": { |
| 72 | "name": "change_tag", |
| 73 | "comment": "A table to track tags for revisions, logs and recent changes", |
| 74 | "columns": [ |
| 75 | { |
| 76 | "name": "ct_id", |
| 77 | "type": "integer", |
| 78 | "options": { "unsigned": true, "notnull": true, "autoincrement": true } |
| 79 | }, |
| 80 | { |
| 81 | "name": "ct_rc_id", |
| 82 | "comment": "RCID for the change", |
| 83 | "type": "integer", |
| 84 | "options": { "unsigned": true, "notnull": false, "default": null } |
| 85 | }, |
| 86 | { |
| 87 | "name": "ct_log_id", |
| 88 | "comment": "LOGID for the change", |
| 89 | "type": "integer", |
| 90 | "options": { "unsigned": true, "notnull": false, "default": null } |
| 91 | }, |
| 92 | { |
| 93 | "name": "ct_rev_id", |
| 94 | "comment": "REVID for the change", |
| 95 | "type": "integer", |
| 96 | "options": { "unsigned": true, "notnull": false, "default": null } |
| 97 | }, |
| 98 | { |
| 99 | "name": "ct_params", |
| 100 | "comment": "Parameters for the tag; used by some extensions", |
| 101 | "type": "blob", |
| 102 | "options": { "length": 65530, "notnull": false, "default": null } |
| 103 | }, |
| 104 | { |
| 105 | "name": "ct_tag_id", |
| 106 | "comment": "Foreign key to change_tag_def row", |
| 107 | "type": "integer", |
| 108 | "options": { "unsigned": true, "notnull": true } |
| 109 | } |
| 110 | ], |
| 111 | "indexes": [ |
| 112 | { "name": "change_tag_rc_tag_id", "columns": [ "ct_rc_id", "ct_tag_id" ], "unique": true }, |
| 113 | { "name": "change_tag_log_tag_id", "columns": [ "ct_log_id", "ct_tag_id" ], "unique": true }, |
| 114 | { "name": "change_tag_rev_tag_id", "columns": [ "ct_rev_id", "ct_tag_id" ], "unique": true }, |
| 115 | { |
| 116 | "name": "change_tag_tag_id_id", |
| 117 | "comment": "Covering index, so we can pull all the info only out of the index.", |
| 118 | "columns": [ "ct_tag_id", "ct_rc_id", "ct_rev_id", "ct_log_id" ], |
| 119 | "unique": false |
| 120 | } |
| 121 | ], |
| 122 | "pk": [ "ct_id" ] |
| 123 | } |
| 124 | } |