| 1 | { |
| 2 | "comment": "Set unsigned true for ir_ipb_id in ipblocks_restrictions table", |
| 3 | "before": { |
| 4 | "name": "ipblocks_restrictions", |
| 5 | "comment": "Partial Block Restrictions", |
| 6 | "columns": [ |
| 7 | { |
| 8 | "name": "ir_ipb_id", |
| 9 | "comment": "The ipb_id from ipblocks", |
| 10 | "type": "integer", |
| 11 | "options": { "notnull": true } |
| 12 | }, |
| 13 | { |
| 14 | "name": "ir_type", |
| 15 | "comment": "The restriction type id.", |
| 16 | "type": "mwtinyint", |
| 17 | "options": { "notnull": true, "length": 4 } |
| 18 | }, |
| 19 | { |
| 20 | "name": "ir_value", |
| 21 | "comment": "The restriction id that corresponds to the type. Typically a Page ID or a Namespace ID.", |
| 22 | "type": "integer", |
| 23 | "options": { "notnull": true, "unsigned": true } |
| 24 | } |
| 25 | ], |
| 26 | "indexes": [ |
| 27 | { |
| 28 | "name": "ir_type_value", |
| 29 | "comment": "Index to query restrictions by the page or namespace.", |
| 30 | "columns": [ "ir_type", "ir_value" ], |
| 31 | "unique": false |
| 32 | } |
| 33 | ], |
| 34 | "pk": [ "ir_ipb_id", "ir_type", "ir_value" ] |
| 35 | }, |
| 36 | "after": { |
| 37 | "name": "ipblocks_restrictions", |
| 38 | "comment": "Partial Block Restrictions", |
| 39 | "columns": [ |
| 40 | { |
| 41 | "name": "ir_ipb_id", |
| 42 | "comment": "The ipb_id from ipblocks", |
| 43 | "type": "integer", |
| 44 | "options": { "notnull": true, "unsigned": true } |
| 45 | }, |
| 46 | { |
| 47 | "name": "ir_type", |
| 48 | "comment": "The restriction type id.", |
| 49 | "type": "mwtinyint", |
| 50 | "options": { "notnull": true, "length": 4 } |
| 51 | }, |
| 52 | { |
| 53 | "name": "ir_value", |
| 54 | "comment": "The restriction id that corresponds to the type. Typically a Page ID or a Namespace ID.", |
| 55 | "type": "integer", |
| 56 | "options": { "notnull": true, "unsigned": true } |
| 57 | } |
| 58 | ], |
| 59 | "indexes": [ |
| 60 | { |
| 61 | "name": "ir_type_value", |
| 62 | "comment": "Index to query restrictions by the page or namespace.", |
| 63 | "columns": [ "ir_type", "ir_value" ], |
| 64 | "unique": false |
| 65 | } |
| 66 | ], |
| 67 | "pk": [ "ir_ipb_id", "ir_type", "ir_value" ] |
| 68 | } |
| 69 | } |