Debian Codegraph @

maintenance/abstractSchemaChanges/patch-logging-rename-indexes.json

raw symbols SCIP
1 {
2 "comment": "Rename several indexes in logging table to comply with database convention by having log_ prefix",
3 "before": {
4 "name": "logging",
5 "columns": [
6 {
7 "name": "log_id",
8 "comment": "Log ID, for referring to this specific log entry, probably for deletion and such.",
9 "type": "integer",
10 "options": { "unsigned": true, "notnull": true, "autoincrement": true }
11 },
12 {
13 "name": "log_type",
14 "comment": "Symbolic key for the general log type. The output format will be controlled by the log_action field.",
15 "type": "binary",
16 "options": { "notnull": true, "default": "", "length": 32 }
17 },
18 {
19 "name": "log_action",
20 "comment": "Symbolic key for the log action type.",
21 "type": "binary",
22 "options": { "notnull": true, "default": "", "length": 32 }
23 },
24 {
25 "name": "log_timestamp",
26 "type": "mwtimestamp",
27 "options": { "notnull": true, "default": "19700101000000" }
28 },
29 {
30 "name": "log_actor",
31 "type": "bigint",
32 "options": { "notnull": true, "unsigned": true }
33 },
34 {
35 "name": "log_namespace",
36 "comment": "Key to the namespace of the page affected",
37 "type": "integer",
38 "options": { "notnull": true, "default": 0 }
39 },
40 {
41 "name": "log_title",
42 "comment": "Key to the title of the page affected",
43 "type": "binary",
44 "options": { "notnull": true, "default": "", "length": 255 }
45 },
46 {
47 "name": "log_page",
48 "comment": "Key to the page affected",
49 "type": "integer",
50 "options": { "notnull": false, "unsigned": true }
51 },
52 {
53 "name": "log_comment_id",
54 "comment": "Key to comment_id. Comment summarizing the change.",
55 "type": "bigint",
56 "options": { "notnull": true, "unsigned": true }
57 },
58 {
59 "name": "log_params",
60 "comment": "LF separated list (old system) or serialized PHP array (new system)",
61 "type": "blob",
62 "options": { "notnull": true, "length": 65530 }
63 },
64 {
65 "name": "log_deleted",
66 "comment": "rev_deleted for logs",
67 "type": "mwtinyint",
68 "options": { "notnull": true, "unsigned": true, "default": 0 }
69 }
70 ],
71 "indexes": [
72 {
73 "name": "type_time",
74 "comment": "Special:Log type filter",
75 "columns": [ "log_type", "log_timestamp" ],
76 "unique": false
77 },
78 {
79 "name": "actor_time",
80 "comment": "Special:Log performer filter",
81 "columns": [ "log_actor", "log_timestamp" ],
82 "unique": false
83 },
84 {
85 "name": "page_time",
86 "comment": "Special:Log title filter, log extract",
87 "columns": [ "log_namespace", "log_title", "log_timestamp" ],
88 "unique": false
89 },
90 {
91 "name": "times",
92 "comment": "Special:Log unfiltered",
93 "columns": [ "log_timestamp" ],
94 "unique": false
95 },
96 {
97 "name": "log_actor_type_time",
98 "comment": "Special:Log filter by performer and type",
99 "columns": [ "log_actor", "log_type", "log_timestamp" ],
100 "unique": false
101 },
102 {
103 "name": "log_page_id_time",
104 "comment": "Apparently just used for a few maintenance pages (findMissingFiles.php, Flow). Could be removed?",
105 "columns": [ "log_page", "log_timestamp" ],
106 "unique": false
107 },
108 {
109 "name": "log_type_action",
110 "comment": "Special:Log action filter",
111 "columns": [ "log_type", "log_action", "log_timestamp" ],
112 "unique": false
113 }
114 ],
115 "pk": [ "log_id" ]
116 },
117 "after": {
118 "name": "logging",
119 "columns": [
120 {
121 "name": "log_id",
122 "comment": "Log ID, for referring to this specific log entry, probably for deletion and such.",
123 "type": "integer",
124 "options": { "unsigned": true, "notnull": true, "autoincrement": true }
125 },
126 {
127 "name": "log_type",
128 "comment": "Symbolic key for the general log type. The output format will be controlled by the log_action field.",
129 "type": "binary",
130 "options": { "notnull": true, "default": "", "length": 32 }
131 },
132 {
133 "name": "log_action",
134 "comment": "Symbolic key for the log action type.",
135 "type": "binary",
136 "options": { "notnull": true, "default": "", "length": 32 }
137 },
138 {
139 "name": "log_timestamp",
140 "type": "mwtimestamp",
141 "options": { "notnull": true, "default": "19700101000000" }
142 },
143 {
144 "name": "log_actor",
145 "type": "bigint",
146 "options": { "notnull": true, "unsigned": true }
147 },
148 {
149 "name": "log_namespace",
150 "comment": "Key to the namespace of the page affected",
151 "type": "integer",
152 "options": { "notnull": true, "default": 0 }
153 },
154 {
155 "name": "log_title",
156 "comment": "Key to the title of the page affected",
157 "type": "binary",
158 "options": { "notnull": true, "default": "", "length": 255 }
159 },
160 {
161 "name": "log_page",
162 "comment": "Key to the page affected",
163 "type": "integer",
164 "options": { "notnull": false, "unsigned": true }
165 },
166 {
167 "name": "log_comment_id",
168 "comment": "Key to comment_id. Comment summarizing the change.",
169 "type": "bigint",
170 "options": { "notnull": true, "unsigned": true }
171 },
172 {
173 "name": "log_params",
174 "comment": "LF separated list (old system) or serialized PHP array (new system)",
175 "type": "blob",
176 "options": { "notnull": true, "length": 65530 }
177 },
178 {
179 "name": "log_deleted",
180 "comment": "rev_deleted for logs",
181 "type": "mwtinyint",
182 "options": { "notnull": true, "unsigned": true, "default": 0 }
183 }
184 ],
185 "indexes": [
186 {
187 "name": "log_type_time",
188 "comment": "Special:Log type filter",
189 "columns": [ "log_type", "log_timestamp" ],
190 "unique": false
191 },
192 {
193 "name": "log_actor_time",
194 "comment": "Special:Log performer filter",
195 "columns": [ "log_actor", "log_timestamp" ],
196 "unique": false
197 },
198 {
199 "name": "log_page_time",
200 "comment": "Special:Log title filter, log extract",
201 "columns": [ "log_namespace", "log_title", "log_timestamp" ],
202 "unique": false
203 },
204 {
205 "name": "log_times",
206 "comment": "Special:Log unfiltered",
207 "columns": [ "log_timestamp" ],
208 "unique": false
209 },
210 {
211 "name": "log_actor_type_time",
212 "comment": "Special:Log filter by performer and type",
213 "columns": [ "log_actor", "log_type", "log_timestamp" ],
214 "unique": false
215 },
216 {
217 "name": "log_page_id_time",
218 "comment": "Apparently just used for a few maintenance pages (findMissingFiles.php, Flow). Could be removed?",
219 "columns": [ "log_page", "log_timestamp" ],
220 "unique": false
221 },
222 {
223 "name": "log_type_action",
224 "comment": "Special:Log action filter",
225 "columns": [ "log_type", "log_action", "log_timestamp" ],
226 "unique": false
227 }
228 ],
229 "pk": [ "log_id" ]
230 }
231 }