Debian Codegraph @

maintenance/abstractSchemaChanges/patch-pagelinks-drop-pl_title.json

raw symbols SCIP
1 {
2 "comment": "Drop old pagelinks columns (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 "name": "pl_target_id",
31 "type": "bigint",
32 "comment": "Foreign key to linktarget.lt_id",
33 "options": { "notnull": false, "unsigned": true }
34 }
35 ],
36 "indexes": [
37 {
38 "name": "pl_namespace",
39 "columns": [ "pl_namespace", "pl_title", "pl_from" ],
40 "comment": "Reverse index, for Special:Whatlinkshere",
41 "unique": false
42 },
43 {
44 "name": "pl_backlinks_namespace",
45 "columns": [ "pl_from_namespace", "pl_namespace", "pl_title", "pl_from" ],
46 "comment": "Index for Special:Whatlinkshere with namespace filter",
47 "unique": false
48 },
49 {
50 "name": "pl_target_id",
51 "columns": [ "pl_target_id", "pl_from" ],
52 "comment": "Reverse index, for Special:Whatlinkshere",
53 "unique": false
54 },
55 {
56 "name": "pl_backlinks_namespace_target_id",
57 "columns": [ "pl_from_namespace", "pl_target_id", "pl_from" ],
58 "comment": "Index for Special:Whatlinkshere with namespace filter",
59 "unique": false
60 }
61 ],
62 "pk": [ "pl_from", "pl_namespace", "pl_title" ]
63 },
64 "after": {
65 "name": "pagelinks",
66 "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.",
67 "columns": [
68 {
69 "name": "pl_from",
70 "comment": "Key to the page_id of the page containing the link.",
71 "type": "integer",
72 "options": { "notnull": true, "unsigned": true, "default": 0 }
73 },
74 {
75 "name": "pl_from_namespace",
76 "type": "integer",
77 "comment": "Namespace for pl_from page",
78 "options": { "notnull": true, "default": 0 }
79 },
80 {
81 "name": "pl_target_id",
82 "type": "bigint",
83 "comment": "Foreign key to linktarget.lt_id",
84 "options": { "notnull": false, "unsigned": true }
85 }
86 ],
87 "indexes": [
88 {
89 "name": "pl_target_id",
90 "columns": [ "pl_target_id", "pl_from" ],
91 "comment": "Reverse index, for Special:Whatlinkshere",
92 "unique": false
93 },
94 {
95 "name": "pl_backlinks_namespace_target_id",
96 "columns": [ "pl_from_namespace", "pl_target_id", "pl_from" ],
97 "comment": "Index for Special:Whatlinkshere with namespace filter",
98 "unique": false
99 }
100 ],
101 "pk": [ "pl_from", "pl_target_id" ]
102 }
103 }