Debian Codegraph @

maintenance/abstractSchemaChanges/patch-drop-rev_page_id.json

raw symbols SCIP
1 {
2 "comment": "Drop rev_page_id index on revision (T163532)",
3 "before": {
4 "name": "revision",
5 "comment": "Every edit of a page creates also a revision row. This stores metadata about the revision, and a reference to the text storage backend.",
6 "columns": [
7 {
8 "name": "rev_id",
9 "comment": "Unique ID to identify each revision",
10 "type": "integer",
11 "options": { "unsigned": true, "notnull": true, "autoincrement": true }
12 },
13 {
14 "name": "rev_page",
15 "comment": "Key to page_id. This should never be invalid",
16 "type": "integer",
17 "options": { "unsigned": true, "notnull": true }
18 },
19 {
20 "name": "rev_comment_id",
21 "comment": "Key to comment.comment_id. Comment summarizing the change",
22 "type": "bigint",
23 "options": { "unsigned": true, "notnull": true, "default": 0 }
24 },
25 {
26 "name": "rev_actor",
27 "comment": "Key to actor.actor_id of the user or IP who made this edit",
28 "type": "bigint",
29 "options": { "unsigned": true, "notnull": true, "default": 0 }
30 },
31 {
32 "name": "rev_timestamp",
33 "comment": "Timestamp of when revision was created",
34 "type": "mwtimestamp",
35 "options": { "notnull": true }
36 },
37 {
38 "name": "rev_minor_edit",
39 "comment": "Records whether the user marked the 'minor edit' checkbox. Many automated edits are marked as minor",
40 "type": "mwtinyint",
41 "options": { "notnull": true, "unsigned": true, "default": 0 }
42 },
43 {
44 "name": "rev_deleted",
45 "comment": "Restrictions on who can access this revision",
46 "type": "mwtinyint",
47 "options": { "notnull": true, "unsigned": true, "default": 0 }
48 },
49 {
50 "name": "rev_len",
51 "comment": "Length of this revision in bytes",
52 "type": "integer",
53 "options": { "unsigned": true, "notnull": false }
54 },
55 {
56 "name": "rev_parent_id",
57 "comment": "Key to revision.rev_id. This field is used to add support for a tree structure (The Adjacency List Model)",
58 "type": "integer",
59 "options": { "unsigned": true, "notnull": false }
60 },
61 {
62 "name": "rev_sha1",
63 "comment": "SHA-1 text content hash in base-36",
64 "type": "binary",
65 "options": { "length": 32, "notnull": true, "default": "" }
66 }
67 ],
68 "indexes": [
69 {
70 "name": "rev_page_id",
71 "columns": [ "rev_page", "rev_id" ],
72 "comment": "The index is proposed for removal, do not use it in new code: T163532. Used for ordering revisions within a page by rev_id, which is usually incorrect, since rev_timestamp is normally the correct order. It can also be used by dumpBackup.php, if a page and rev_id range is specified.",
73 "unique": false
74 },
75 {
76 "name": "rev_timestamp",
77 "columns": [ "rev_timestamp" ],
78 "comment": "Used by ApiQueryAllRevisions",
79 "unique": false
80 },
81 {
82 "name": "rev_page_timestamp",
83 "columns": [ "rev_page", "rev_timestamp" ],
84 "comment": "History index",
85 "unique": false
86 },
87 {
88 "name": "rev_actor_timestamp",
89 "columns": [ "rev_actor", "rev_timestamp", "rev_id" ],
90 "comment": "User contributions index",
91 "unique": false
92 },
93 {
94 "name": "rev_page_actor_timestamp",
95 "columns": [ "rev_page", "rev_actor", "rev_timestamp" ],
96 "comment": "Credits index. This is scanned in order to compile credits lists for pages, in ApiQueryContributors. Also for ApiQueryRevisions if rvuser is specified",
97 "unique": false
98 }
99 ],
100 "pk": [ "rev_id" ]
101 },
102 "after": {
103 "name": "revision",
104 "comment": "Every edit of a page creates also a revision row. This stores metadata about the revision, and a reference to the text storage backend.",
105 "columns": [
106 {
107 "name": "rev_id",
108 "comment": "Unique ID to identify each revision",
109 "type": "integer",
110 "options": { "unsigned": true, "notnull": true, "autoincrement": true }
111 },
112 {
113 "name": "rev_page",
114 "comment": "Key to page_id. This should never be invalid",
115 "type": "integer",
116 "options": { "unsigned": true, "notnull": true }
117 },
118 {
119 "name": "rev_comment_id",
120 "comment": "Key to comment.comment_id. Comment summarizing the change",
121 "type": "bigint",
122 "options": { "unsigned": true, "notnull": true, "default": 0 }
123 },
124 {
125 "name": "rev_actor",
126 "comment": "Key to actor.actor_id of the user or IP who made this edit",
127 "type": "bigint",
128 "options": { "unsigned": true, "notnull": true, "default": 0 }
129 },
130 {
131 "name": "rev_timestamp",
132 "comment": "Timestamp of when revision was created",
133 "type": "mwtimestamp",
134 "options": { "notnull": true }
135 },
136 {
137 "name": "rev_minor_edit",
138 "comment": "Records whether the user marked the 'minor edit' checkbox. Many automated edits are marked as minor",
139 "type": "mwtinyint",
140 "options": { "notnull": true, "unsigned": true, "default": 0 }
141 },
142 {
143 "name": "rev_deleted",
144 "comment": "Restrictions on who can access this revision",
145 "type": "mwtinyint",
146 "options": { "notnull": true, "unsigned": true, "default": 0 }
147 },
148 {
149 "name": "rev_len",
150 "comment": "Length of this revision in bytes",
151 "type": "integer",
152 "options": { "unsigned": true, "notnull": false }
153 },
154 {
155 "name": "rev_parent_id",
156 "comment": "Key to revision.rev_id. This field is used to add support for a tree structure (The Adjacency List Model)",
157 "type": "integer",
158 "options": { "unsigned": true, "notnull": false }
159 },
160 {
161 "name": "rev_sha1",
162 "comment": "SHA-1 text content hash in base-36",
163 "type": "binary",
164 "options": { "length": 32, "notnull": true, "default": "" }
165 }
166 ],
167 "indexes": [
168 {
169 "name": "rev_timestamp",
170 "columns": [ "rev_timestamp" ],
171 "comment": "Used by ApiQueryAllRevisions",
172 "unique": false
173 },
174 {
175 "name": "rev_page_timestamp",
176 "columns": [ "rev_page", "rev_timestamp" ],
177 "comment": "History index",
178 "unique": false
179 },
180 {
181 "name": "rev_actor_timestamp",
182 "columns": [ "rev_actor", "rev_timestamp", "rev_id" ],
183 "comment": "User contributions index",
184 "unique": false
185 },
186 {
187 "name": "rev_page_actor_timestamp",
188 "columns": [ "rev_page", "rev_actor", "rev_timestamp" ],
189 "comment": "Credits index. This is scanned in order to compile credits lists for pages, in ApiQueryContributors. Also for ApiQueryRevisions if rvuser is specified",
190 "unique": false
191 }
192 ],
193 "pk": [ "rev_id" ]
194 }
195 }