Debian Codegraph @

maintenance/abstractSchemaChanges/patch-recentchanges-rc_id-bigint.json

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