Debian Codegraph @

maintenance/abstractSchemaChanges/patch-templatelinks-target_id.json

raw symbols SCIP
1 {
2 "comment": "Add tl_target_id on templatelinks (T299418)",
3 "before": {
4 "name": "templatelinks",
5 "comment": "Track template inclusions. 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": "tl_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": "tl_from_namespace",
15 "type": "integer",
16 "comment": "Namespace for this page",
17 "options": { "notnull": true, "default": 0 }
18 },
19 {
20 "name": "tl_namespace",
21 "type": "integer",
22 "options": { "notnull": true, "default": 0 }
23 },
24 {
25 "name": "tl_title",
26 "type": "binary",
27 "options": { "notnull": true, "length": 255, "default": "" }
28 }
29 ],
30 "indexes": [
31 {
32 "name": "tl_namespace",
33 "columns": [ "tl_namespace", "tl_title", "tl_from" ],
34 "comment": "Reverse index, for Special:Whatlinkshere",
35 "unique": false
36 },
37 {
38 "name": "tl_backlinks_namespace",
39 "columns": [ "tl_from_namespace", "tl_namespace", "tl_title", "tl_from" ],
40 "comment": "Index for Special:Whatlinkshere with namespace filter",
41 "unique": false
42 }
43 ],
44 "pk": [ "tl_from", "tl_namespace", "tl_title" ]
45 },
46 "after": {
47 "name": "templatelinks",
48 "comment": "Track template inclusions. 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": "tl_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": "tl_from_namespace",
58 "type": "integer",
59 "comment": "Namespace for this page",
60 "options": { "notnull": true, "default": 0 }
61 },
62 {
63 "name": "tl_namespace",
64 "type": "integer",
65 "options": { "notnull": true, "default": 0 }
66 },
67 {
68 "name": "tl_title",
69 "type": "binary",
70 "options": { "notnull": true, "length": 255, "default": "" }
71 },
72 {
73 "name": "tl_target_id",
74 "type": "bigint",
75 "comment": "Foreign key to linktarget.lt_id",
76 "options": { "notnull": false, "unsigned": true, "default": null }
77 }
78 ],
79 "indexes": [
80 {
81 "name": "tl_namespace",
82 "columns": [ "tl_namespace", "tl_title", "tl_from" ],
83 "comment": "Reverse index, for Special:Whatlinkshere",
84 "unique": false
85 },
86 {
87 "name": "tl_backlinks_namespace",
88 "columns": [ "tl_from_namespace", "tl_namespace", "tl_title", "tl_from" ],
89 "comment": "Index for Special:Whatlinkshere with namespace filter",
90 "unique": false
91 },
92 {
93 "name": "tl_target_id",
94 "columns": [ "tl_target_id", "tl_from" ],
95 "comment": "Reverse index, for Special:Whatlinkshere",
96 "unique": false
97 },
98 {
99 "name": "tl_backlinks_namespace_target_id",
100 "columns": [ "tl_from_namespace", "tl_target_id", "tl_from" ],
101 "comment": "Index for Special:Whatlinkshere with namespace filter",
102 "unique": false
103 }
104 ],
105 "pk": [ "tl_from", "tl_namespace", "tl_title" ]
106 }
107 }