Debian Codegraph @

maintenance/abstractSchemaChanges/patch-drop-page_restrictions-pr_user.json

raw symbols SCIP
1 {
2 "comment": "Drop page_restrictions.pr_user field (T199377)",
3 "before": {
4 "name": "page_restrictions",
5 "comment": "Used for storing page restrictions (i.e. protection levels)",
6 "columns": [
7 {
8 "name": "pr_id",
9 "comment": "Field for an ID for this restrictions row (sort-key for Special:ProtectedPages)",
10 "type": "integer",
11 "options": { "unsigned": true, "notnull": true, "autoincrement": true }
12 },
13 {
14 "name": "pr_page",
15 "comment": "Page to apply restrictions to (Foreign Key to page).",
16 "type": "integer",
17 "options": { "notnull": true }
18 },
19 {
20 "name": "pr_type",
21 "comment": "The protection type (edit, move, etc)",
22 "type": "binary",
23 "options": { "length": 60, "notnull": true }
24 },
25 {
26 "name": "pr_level",
27 "comment": "The protection level (Sysop, autoconfirmed, etc)",
28 "type": "binary",
29 "options": { "length": 60, "notnull": true }
30 },
31 {
32 "name": "pr_cascade",
33 "type": "mwtinyint",
34 "options": { "notnull": true }
35 },
36 {
37 "name": "pr_user",
38 "comment": "Field for future support of per-user restriction.",
39 "type": "integer",
40 "options": { "notnull": false, "unsigned": true }
41 },
42 {
43 "name": "pr_expiry",
44 "comment": "Field for time-limited protection.",
45 "type": "mwtimestamp",
46 "options": {
47 "notnull": false,
48 "CustomSchemaOptions": {
49 "allowInfinite": true
50 }
51 }
52 }
53 ],
54 "indexes": [
55 { "name": "pr_pagetype", "columns": [ "pr_page", "pr_type" ], "unique": true },
56 { "name": "pr_typelevel", "columns": [ "pr_type", "pr_level" ], "unique": false },
57 { "name": "pr_level", "columns": [ "pr_level" ], "unique": false },
58 { "name": "pr_cascade", "columns": [ "pr_cascade" ], "unique": false }
59 ],
60 "pk": [ "pr_id" ]
61 },
62 "after": {
63 "name": "page_restrictions",
64 "comment": "Used for storing page restrictions (i.e. protection levels)",
65 "columns": [
66 {
67 "name": "pr_id",
68 "comment": "Field for an ID for this restrictions row (sort-key for Special:ProtectedPages)",
69 "type": "integer",
70 "options": { "unsigned": true, "notnull": true, "autoincrement": true }
71 },
72 {
73 "name": "pr_page",
74 "comment": "Page to apply restrictions to (Foreign Key to page).",
75 "type": "integer",
76 "options": { "notnull": true }
77 },
78 {
79 "name": "pr_type",
80 "comment": "The protection type (edit, move, etc)",
81 "type": "binary",
82 "options": { "length": 60, "notnull": true }
83 },
84 {
85 "name": "pr_level",
86 "comment": "The protection level (Sysop, autoconfirmed, etc)",
87 "type": "binary",
88 "options": { "length": 60, "notnull": true }
89 },
90 {
91 "name": "pr_cascade",
92 "type": "mwtinyint",
93 "options": { "notnull": true }
94 },
95 {
96 "name": "pr_expiry",
97 "comment": "Field for time-limited protection.",
98 "type": "mwtimestamp",
99 "options": {
100 "notnull": false,
101 "CustomSchemaOptions": {
102 "allowInfinite": true
103 }
104 }
105 }
106 ],
107 "indexes": [
108 { "name": "pr_pagetype", "columns": [ "pr_page", "pr_type" ], "unique": true },
109 { "name": "pr_typelevel", "columns": [ "pr_type", "pr_level" ], "unique": false },
110 { "name": "pr_level", "columns": [ "pr_level" ], "unique": false },
111 { "name": "pr_cascade", "columns": [ "pr_cascade" ], "unique": false }
112 ],
113 "pk": [ "pr_id" ]
114 }
115 }