Debian Codegraph @

maintenance/abstractSchemaChanges/patch-pagelinks-target_id.json

raw symbols SCIP
1 {
2 "comment": "Add tl_target_id on pagelinks (T299947)",
3 "before": {
4 "name": "pagelinks",
5 "comment": "Track page-to-page hyperlinks within the wiki. The target page may or may not exist, and due to renames and deletions may refer to different page records as time goes by.",
6 "columns": [
7 {
8 "name": "pl_from",
9 "comment": "Key to the page_id of the page containing the link.",
10 "type": "integer",
11 "options": { "notnull": true, "unsigned": true, "default": 0 }
12 },
13 {
14 "name": "pl_namespace",
15 "type": "integer",
16 "options": { "notnull": true, "default": 0 }
17 },
18 {
19 "name": "pl_title",
20 "type": "binary",
21 "options": { "notnull": true, "length": 255, "default": "" }
22 },
23 {
24 "name": "pl_from_namespace",
25 "type": "integer",
26 "comment": "Namespace for pl_from page",
27 "options": { "notnull": true, "default": 0 }
28 }
29 ],
30 "indexes": [
31 {
32 "name": "pl_namespace",
33 "columns": [ "pl_namespace", "pl_title", "pl_from" ],
34 "comment": "Reverse index, for Special:Whatlinkshere",
35 "unique": false
36 },
37 {
38 "name": "pl_backlinks_namespace",
39 "columns": [ "pl_from_namespace", "pl_namespace", "pl_title", "pl_from" ],
40 "comment": "Index for Special:Whatlinkshere with namespace filter",
41 "unique": false
42 }
43 ],
44 "pk": [ "pl_from", "pl_namespace", "pl_title" ]
45 },
46 "after": {
47 "name": "pagelinks",
48 "comment": "Track page-to-page hyperlinks within the wiki. The target page may or may not exist, and due to renames and deletions may refer to different page records as time goes by.",
49 "columns": [
50 {
51 "name": "pl_from",
52 "comment": "Key to the page_id of the page containing the link.",
53 "type": "integer",
54 "options": { "notnull": true, "unsigned": true, "default": 0 }
55 },
56 {
57 "name": "pl_namespace",
58 "type": "integer",
59 "options": { "notnull": true, "default": 0 }
60 },
61 {
62 "name": "pl_title",
63 "type": "binary",
64 "options": { "notnull": true, "length": 255, "default": "" }
65 },
66 {
67 "name": "pl_from_namespace",
68 "type": "integer",
69 "comment": "Namespace for pl_from page",
70 "options": { "notnull": true, "default": 0 }
71 },
72 {
73 "name": "pl_target_id",
74 "type": "bigint",
75 "comment": "Foreign key to linktarget.lt_id",
76 "options": { "notnull": false, "unsigned": true }
77 }
78 ],
79 "indexes": [
80 {
81 "name": "pl_namespace",
82 "columns": [ "pl_namespace", "pl_title", "pl_from" ],
83 "comment": "Reverse index, for Special:Whatlinkshere",
84 "unique": false
85 },
86 {
87 "name": "pl_backlinks_namespace",
88 "columns": [ "pl_from_namespace", "pl_namespace", "pl_title", "pl_from" ],
89 "comment": "Index for Special:Whatlinkshere with namespace filter",
90 "unique": false
91 },
92 {
93 "name": "pl_target_id",
94 "columns": [ "pl_target_id", "pl_from" ],
95 "comment": "Reverse index, for Special:Whatlinkshere",
96 "unique": false
97 },
98 {
99 "name": "pl_backlinks_namespace_target_id",
100 "columns": [ "pl_from_namespace", "pl_target_id", "pl_from" ],
101 "comment": "Index for Special:Whatlinkshere with namespace filter",
102 "unique": false
103 }
104 ],
105 "pk": [ "pl_from", "pl_namespace", "pl_title" ]
106 }
107 }