1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
|
{
"comment": "Changing the primary key as part of normalizing templatelinks (T306674)",
"before": {
"name": "templatelinks",
"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.",
"columns": [
{
"name": "tl_from",
"comment": "Key to the page_id of the page containing the link.",
"type": "integer",
"options": { "notnull": true, "unsigned": true, "default": 0 }
},
{
"name": "tl_from_namespace",
"type": "integer",
"comment": "Namespace for this page",
"options": { "notnull": true, "default": 0 }
},
{
"name": "tl_namespace",
"type": "integer",
"options": { "notnull": true, "default": 0 }
},
{
"name": "tl_title",
"type": "binary",
"options": { "notnull": true, "length": 255, "default": "" }
},
{
"name": "tl_target_id",
"type": "bigint",
"comment": "Foreign key to linktarget.lt_id",
"options": { "notnull": false, "unsigned": true, "default": null }
}
],
"indexes": [
{
"name": "tl_namespace",
"columns": [ "tl_namespace", "tl_title", "tl_from" ],
"comment": "Reverse index, for Special:Whatlinkshere",
"unique": false
},
{
"name": "tl_backlinks_namespace",
"columns": [ "tl_from_namespace", "tl_namespace", "tl_title", "tl_from" ],
"comment": "Index for Special:Whatlinkshere with namespace filter",
"unique": false
},
{
"name": "tl_target_id",
"columns": [ "tl_target_id", "tl_from" ],
"comment": "Reverse index, for Special:Whatlinkshere",
"unique": false
},
{
"name": "tl_backlinks_namespace_target_id",
"columns": [ "tl_from_namespace", "tl_target_id", "tl_from" ],
"comment": "Index for Special:Whatlinkshere with namespace filter",
"unique": false
}
],
"pk": [ "tl_from", "tl_namespace", "tl_title" ]
},
"after": {
"name": "templatelinks",
"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.",
"columns": [
{
"name": "tl_from",
"comment": "Key to the page_id of the page containing the link.",
"type": "integer",
"options": { "notnull": true, "unsigned": true, "default": 0 }
},
{
"name": "tl_from_namespace",
"type": "integer",
"comment": "Namespace for this page",
"options": { "notnull": true, "default": 0 }
},
{
"name": "tl_namespace",
"type": "integer",
"options": { "default": 0 }
},
{
"name": "tl_title",
"type": "binary",
"options": { "length": 255, "default": "" }
},
{
"name": "tl_target_id",
"type": "bigint",
"comment": "Foreign key to linktarget.lt_id",
"options": { "notnull": true, "unsigned": true }
}
],
"indexes": [
{
"name": "tl_namespace",
"columns": [ "tl_namespace", "tl_title", "tl_from" ],
"comment": "Reverse index, for Special:Whatlinkshere",
"unique": false
},
{
"name": "tl_backlinks_namespace",
"columns": [ "tl_from_namespace", "tl_namespace", "tl_title", "tl_from" ],
"comment": "Index for Special:Whatlinkshere with namespace filter",
"unique": false
},
{
"name": "tl_target_id",
"columns": [ "tl_target_id", "tl_from" ],
"comment": "Reverse index, for Special:Whatlinkshere",
"unique": false
},
{
"name": "tl_backlinks_namespace_target_id",
"columns": [ "tl_from_namespace", "tl_target_id", "tl_from" ],
"comment": "Index for Special:Whatlinkshere with namespace filter",
"unique": false
}
],
"pk": [ "tl_from", "tl_target_id" ]
}
}
|