Debian Codegraph @

maintenance/abstractSchemaChanges/patch-recentchanges-rc_new_name_timestamp.json

raw symbols SCIP
1 {
2 "comment": "Renaming new_name_timestamp index on recentchanges to rc_new_name_timestamp (T270033)",
3 "before": {
4 "name": "recentchanges",
5 "comment": "Primarily a summary table for Special:Recentchanges, this table contains some additional info on edits from the last few days, see Article::editUpdates()",
6 "columns": [
7 {
8 "name": "rc_id",
9 "type": "integer",
10 "options": {
11 "autoincrement": true,
12 "unsigned": true,
13 "notnull": true
14 }
15 },
16 {
17 "name": "rc_timestamp",
18 "type": "mwtimestamp",
19 "options": {
20 "notnull": true,
21 "length": 14
22 }
23 },
24 {
25 "name": "rc_actor",
26 "comment": "As in revision",
27 "type": "bigint",
28 "options": {
29 "unsigned": true,
30 "notnull": true
31 }
32 },
33 {
34 "name": "rc_namespace",
35 "comment": "When pages are renamed, their RC entries do _not_ change.",
36 "type": "integer",
37 "options": {
38 "notnull": true,
39 "default": 0
40 }
41 },
42 {
43 "name": "rc_title",
44 "type": "binary",
45 "options": {
46 "notnull": true,
47 "default": "",
48 "length": 255
49 }
50 },
51 {
52 "name": "rc_comment_id",
53 "comment": "as in revision...",
54 "type": "bigint",
55 "options": {
56 "unsigned": true,
57 "notnull": true
58 }
59 },
60 {
61 "name": "rc_minor",
62 "type": "mwtinyint",
63 "options": {
64 "unsigned": true,
65 "notnull": true,
66 "default": 0
67 }
68 },
69 {
70 "name": "rc_bot",
71 "comment": "Edits by user accounts with the 'bot' rights key are marked with a 1 here, and will be hidden from the default view.",
72 "type": "mwtinyint",
73 "options": {
74 "unsigned": true,
75 "notnull": true,
76 "default": 0
77 }
78 },
79 {
80 "name": "rc_new",
81 "comment": "Set if this change corresponds to a page creation",
82 "type": "mwtinyint",
83 "options": {
84 "unsigned": true,
85 "notnull": true,
86 "default": 0
87 }
88 },
89 {
90 "name": "rc_cur_id",
91 "comment": "Key to page_id (was cur_id prior to 1.5). This will keep links working after moves while retaining the at-the-time name in the changes list.",
92 "type": "integer",
93 "options": {
94 "unsigned": true,
95 "notnull": true,
96 "default": 0
97 }
98 },
99 {
100 "name": "rc_this_oldid",
101 "comment": "rev_id of the given revision",
102 "type": "integer",
103 "options": {
104 "unsigned": true,
105 "notnull": true,
106 "default": 0
107 }
108 },
109 {
110 "name": "rc_last_oldid",
111 "comment": "rev_id of the prior revision, for generating diff links.",
112 "type": "integer",
113 "options": {
114 "unsigned": true,
115 "notnull": true,
116 "default": 0
117 }
118 },
119 {
120 "name": "rc_type",
121 "comment": "The type of change entry (RC_EDIT,RC_NEW,RC_LOG,RC_EXTERNAL)",
122 "type": "mwtinyint",
123 "options": {
124 "unsigned": true,
125 "notnull": true,
126 "default": 0
127 }
128 },
129 {
130 "name": "rc_source",
131 "comment": "The source of the change entry (replaces rc_type) default of '' is temporary, needed for initial migration",
132 "type": "binary",
133 "options": {
134 "notnull": true,
135 "default": "",
136 "length": 16
137 }
138 },
139 {
140 "name": "rc_patrolled",
141 "comment": "If the Recent Changes Patrol option is enabled, users may mark edits as having been reviewed to remove a warning flag on the RC list. A value of 1 indicates the page has been reviewed.",
142 "type": "mwtinyint",
143 "options": {
144 "unsigned": true,
145 "notnull": true,
146 "default": 0
147 }
148 },
149 {
150 "name": "rc_ip",
151 "comment": "Recorded IP address the edit was made from, if the $wgPutIPinRC option is enabled.",
152 "type": "binary",
153 "options": {
154 "notnull": true,
155 "default": "",
156 "length": 40
157 }
158 },
159 {
160 "name": "rc_old_len",
161 "comment": "Text length in characters before the edit",
162 "type": "integer",
163 "options": {
164 "notnull": false
165 }
166 },
167 {
168 "name": "rc_new_len",
169 "comment": "Text length in characters after the edit",
170 "type": "integer",
171 "options": {
172 "notnull": false
173 }
174 },
175 {
176 "name": "rc_deleted",
177 "comment": "Visibility of recent changes items, bitfield",
178 "type": "mwtinyint",
179 "options": {
180 "unsigned": true,
181 "notnull": true,
182 "default": 0
183 }
184 },
185 {
186 "name": "rc_logid",
187 "comment": "Value corresponding to log_id, specific log entries",
188 "type": "integer",
189 "options": {
190 "unsigned": true,
191 "notnull": true,
192 "default": 0
193 }
194 },
195 {
196 "name": "rc_log_type",
197 "comment": "Store log type info here, or null",
198 "type": "binary",
199 "options": {
200 "notnull": false,
201 "default": null,
202 "length": 255
203 }
204 },
205 {
206 "name": "rc_log_action",
207 "comment": "Store log action or null",
208 "type": "binary",
209 "options": {
210 "notnull": false,
211 "default": null,
212 "length": 255
213 }
214 },
215 {
216 "name": "rc_params",
217 "comment": "Log params",
218 "type": "blob",
219 "options": {
220 "notnull": false,
221 "length": 65535
222 }
223 }
224 ],
225 "indexes": [
226 {
227 "name": "rc_timestamp",
228 "comment": "Special:Recentchanges",
229 "columns": [
230 "rc_timestamp"
231 ],
232 "unique": false
233 },
234 {
235 "name": "rc_namespace_title_timestamp",
236 "comment": "Special:Watchlist",
237 "columns": [
238 "rc_namespace",
239 "rc_title",
240 "rc_timestamp"
241 ],
242 "unique": false
243 },
244 {
245 "name": "rc_cur_id",
246 "comment": "Special:Recentchangeslinked when finding changes in pages linked from a page",
247 "columns": [
248 "rc_cur_id"
249 ],
250 "unique": false
251 },
252 {
253 "name": "new_name_timestamp",
254 "comment": "Special:Newpages",
255 "columns": [
256 "rc_new",
257 "rc_namespace",
258 "rc_timestamp"
259 ],
260 "unique": false
261 },
262 {
263 "name": "rc_ip",
264 "comment": "Blank unless $wgPutIPinRC=true (false at WMF), possibly used by extensions, but mostly replaced by CheckUser.",
265 "columns": [
266 "rc_ip"
267 ],
268 "unique": false
269 },
270 {
271 "name": "rc_ns_actor",
272 "comment": "Probably intended for Special:NewPages namespace filter",
273 "columns": [
274 "rc_namespace",
275 "rc_actor"
276 ],
277 "unique": false
278 },
279 {
280 "name": "rc_actor",
281 "comment": "SiteStats active user count, Special:ActiveUsers, Special:NewPages user filter",
282 "columns": [
283 "rc_actor",
284 "rc_timestamp"
285 ],
286 "unique": false
287 },
288 {
289 "name": "rc_name_type_patrolled_timestamp",
290 "comment": "ApiQueryRecentChanges (T140108)",
291 "columns": [
292 "rc_namespace",
293 "rc_type",
294 "rc_patrolled",
295 "rc_timestamp"
296 ],
297 "unique": false
298 },
299 {
300 "name": "rc_this_oldid",
301 "comment": "Article.php and friends (T139012)",
302 "columns": [
303 "rc_this_oldid"
304 ],
305 "unique": false
306 }
307 ],
308 "pk": [
309 "rc_id"
310 ]
311 },
312 "after": {
313 "name": "recentchanges",
314 "comment": "Primarily a summary table for Special:RecentChanges, this table contains some additional info on edits from the last few days",
315 "columns": [
316 {
317 "name": "rc_id",
318 "type": "integer",
319 "options": {
320 "autoincrement": true,
321 "unsigned": true,
322 "notnull": true
323 }
324 },
325 {
326 "name": "rc_timestamp",
327 "type": "mwtimestamp",
328 "options": {
329 "notnull": true,
330 "length": 14
331 }
332 },
333 {
334 "name": "rc_actor",
335 "comment": "As in revision",
336 "type": "bigint",
337 "options": {
338 "unsigned": true,
339 "notnull": true
340 }
341 },
342 {
343 "name": "rc_namespace",
344 "comment": "When pages are renamed, their RC entries do _not_ change.",
345 "type": "integer",
346 "options": {
347 "notnull": true,
348 "default": 0
349 }
350 },
351 {
352 "name": "rc_title",
353 "type": "binary",
354 "options": {
355 "notnull": true,
356 "default": "",
357 "length": 255
358 }
359 },
360 {
361 "name": "rc_comment_id",
362 "comment": "as in revision...",
363 "type": "bigint",
364 "options": {
365 "unsigned": true,
366 "notnull": true
367 }
368 },
369 {
370 "name": "rc_minor",
371 "type": "mwtinyint",
372 "options": {
373 "unsigned": true,
374 "notnull": true,
375 "default": 0
376 }
377 },
378 {
379 "name": "rc_bot",
380 "comment": "Edits by user accounts with the 'bot' rights key are marked with a 1 here, and will be hidden from the default view.",
381 "type": "mwtinyint",
382 "options": {
383 "unsigned": true,
384 "notnull": true,
385 "default": 0
386 }
387 },
388 {
389 "name": "rc_new",
390 "comment": "Set if this change corresponds to a page creation",
391 "type": "mwtinyint",
392 "options": {
393 "unsigned": true,
394 "notnull": true,
395 "default": 0
396 }
397 },
398 {
399 "name": "rc_cur_id",
400 "comment": "Key to page_id (was cur_id prior to 1.5). This will keep links working after moves while retaining the at-the-time name in the changes list.",
401 "type": "integer",
402 "options": {
403 "unsigned": true,
404 "notnull": true,
405 "default": 0
406 }
407 },
408 {
409 "name": "rc_this_oldid",
410 "comment": "rev_id of the given revision",
411 "type": "integer",
412 "options": {
413 "unsigned": true,
414 "notnull": true,
415 "default": 0
416 }
417 },
418 {
419 "name": "rc_last_oldid",
420 "comment": "rev_id of the prior revision, for generating diff links.",
421 "type": "integer",
422 "options": {
423 "unsigned": true,
424 "notnull": true,
425 "default": 0
426 }
427 },
428 {
429 "name": "rc_type",
430 "comment": "The type of change entry (RC_EDIT,RC_NEW,RC_LOG,RC_EXTERNAL)",
431 "type": "mwtinyint",
432 "options": {
433 "unsigned": true,
434 "notnull": true,
435 "default": 0
436 }
437 },
438 {
439 "name": "rc_source",
440 "comment": "The source of the change entry (replaces rc_type) default of '' is temporary, needed for initial migration",
441 "type": "binary",
442 "options": {
443 "notnull": true,
444 "default": "",
445 "length": 16
446 }
447 },
448 {
449 "name": "rc_patrolled",
450 "comment": "If the Recent Changes Patrol option is enabled, users may mark edits as having been reviewed to remove a warning flag on the RC list. A value of 1 indicates the page has been reviewed.",
451 "type": "mwtinyint",
452 "options": {
453 "unsigned": true,
454 "notnull": true,
455 "default": 0
456 }
457 },
458 {
459 "name": "rc_ip",
460 "comment": "Recorded IP address the edit was made from, if the $wgPutIPinRC option is enabled.",
461 "type": "binary",
462 "options": {
463 "notnull": true,
464 "default": "",
465 "length": 40
466 }
467 },
468 {
469 "name": "rc_old_len",
470 "comment": "Text length in characters before the edit",
471 "type": "integer",
472 "options": {
473 "notnull": false
474 }
475 },
476 {
477 "name": "rc_new_len",
478 "comment": "Text length in characters after the edit",
479 "type": "integer",
480 "options": {
481 "notnull": false
482 }
483 },
484 {
485 "name": "rc_deleted",
486 "comment": "Visibility of recent changes items, bitfield",
487 "type": "mwtinyint",
488 "options": {
489 "unsigned": true,
490 "notnull": true,
491 "default": 0
492 }
493 },
494 {
495 "name": "rc_logid",
496 "comment": "Value corresponding to log_id, specific log entries",
497 "type": "integer",
498 "options": {
499 "unsigned": true,
500 "notnull": true,
501 "default": 0
502 }
503 },
504 {
505 "name": "rc_log_type",
506 "comment": "Store log type info here, or null",
507 "type": "binary",
508 "options": {
509 "notnull": false,
510 "default": null,
511 "length": 255
512 }
513 },
514 {
515 "name": "rc_log_action",
516 "comment": "Store log action or null",
517 "type": "binary",
518 "options": {
519 "notnull": false,
520 "default": null,
521 "length": 255
522 }
523 },
524 {
525 "name": "rc_params",
526 "comment": "Log params",
527 "type": "blob",
528 "options": {
529 "notnull": false,
530 "length": 65535
531 }
532 }
533 ],
534 "indexes": [
535 {
536 "name": "rc_timestamp",
537 "comment": "Special:Recentchanges",
538 "columns": [
539 "rc_timestamp"
540 ],
541 "unique": false
542 },
543 {
544 "name": "rc_namespace_title_timestamp",
545 "comment": "Special:Watchlist",
546 "columns": [
547 "rc_namespace",
548 "rc_title",
549 "rc_timestamp"
550 ],
551 "unique": false
552 },
553 {
554 "name": "rc_cur_id",
555 "comment": "Special:Recentchangeslinked when finding changes in pages linked from a page",
556 "columns": [
557 "rc_cur_id"
558 ],
559 "unique": false
560 },
561 {
562 "name": "rc_new_name_timestamp",
563 "comment": "Special:Newpages",
564 "columns": [
565 "rc_new",
566 "rc_namespace",
567 "rc_timestamp"
568 ],
569 "unique": false
570 },
571 {
572 "name": "rc_ip",
573 "comment": "Blank unless $wgPutIPinRC=true (false at WMF), possibly used by extensions, but mostly replaced by CheckUser.",
574 "columns": [
575 "rc_ip"
576 ],
577 "unique": false
578 },
579 {
580 "name": "rc_ns_actor",
581 "comment": "Probably intended for Special:NewPages namespace filter",
582 "columns": [
583 "rc_namespace",
584 "rc_actor"
585 ],
586 "unique": false
587 },
588 {
589 "name": "rc_actor",
590 "comment": "SiteStats active user count, Special:ActiveUsers, Special:NewPages user filter",
591 "columns": [
592 "rc_actor",
593 "rc_timestamp"
594 ],
595 "unique": false
596 },
597 {
598 "name": "rc_name_type_patrolled_timestamp",
599 "comment": "ApiQueryRecentChanges (T140108)",
600 "columns": [
601 "rc_namespace",
602 "rc_type",
603 "rc_patrolled",
604 "rc_timestamp"
605 ],
606 "unique": false
607 },
608 {
609 "name": "rc_this_oldid",
610 "comment": "Article.php and friends (T139012)",
611 "columns": [
612 "rc_this_oldid"
613 ],
614 "unique": false
615 }
616 ],
617 "pk": [
618 "rc_id"
619 ]
620 }
621 }