Debian Codegraph @

maintenance/abstractSchemaChanges/patch-page-page_links_updated-noinfinite.json

raw symbols SCIP
1 {
2 "comment": "Remove allowInfinite from page_links_updated (T298317)",
3 "before": {
4 "name": "page",
5 "comment": "Core of the wiki: each page has an entry here which identifies it by title and contains some essential metadata.",
6 "columns": [
7 {
8 "name": "page_id",
9 "comment": "Unique identifier number. The page_id will be preserved across edits and rename operations, but not deletions and recreations.",
10 "type": "integer",
11 "options": { "unsigned": true, "notnull": true, "autoincrement": true }
12 },
13 {
14 "name": "page_namespace",
15 "comment": "A page name is broken into a namespace and a title. The namespace keys are UI-language-independent constants, defined in includes/Defines.php",
16 "type": "integer",
17 "options": { "notnull": true }
18 },
19 {
20 "name": "page_title",
21 "comment": "The rest of the title, as text. Spaces are transformed into underscores in title storage.",
22 "type": "binary",
23 "options": { "notnull": true, "length": 255 }
24 },
25 {
26 "name": "page_is_redirect",
27 "comment": "1 indicates the article is a redirect. If so, there is a row in the `redirect` table with rd_from=page_id, which contains the redirect target.",
28 "type": "mwtinyint",
29 "options": { "notnull": true, "unsigned": true, "default": 0 }
30 },
31 {
32 "name": "page_is_new",
33 "comment": "1 indicates this is a new entry, with only one edit. Not all pages with one edit are new pages.",
34 "type": "mwtinyint",
35 "options": { "notnull": true, "unsigned": true, "default": 0 }
36 },
37 {
38 "name": "page_random",
39 "comment": "Random value between 0 and 1, used for Special:Randompage",
40 "type": "float",
41 "options": {
42 "notnull": true,
43 "unsigned": true,
44 "CustomSchemaOptions": {
45 "doublePrecision": true
46 }
47 }
48 },
49 {
50 "name": "page_touched",
51 "comment": "This timestamp is updated whenever the page changes in a way requiring it to be re-rendered, invalidating caches. Aside from editing this includes permission changes, creation or deletion of linked pages, and alteration of contained templates.",
52 "type": "mwtimestamp",
53 "options": { "notnull": true }
54 },
55 {
56 "name": "page_links_updated",
57 "comment": "This timestamp is updated whenever a page is re-parsed and it has all the link tracking tables updated for it. This is useful for de-duplicating expensive backlink update jobs.",
58 "type": "mwtimestamp",
59 "options": {
60 "notnull": false,
61 "default": null,
62 "CustomSchemaOptions": {
63 "allowInfinite": true
64 }
65 }
66 },
67 {
68 "name": "page_latest",
69 "comment": "Handy key to revision.rev_id of the current revision. This may be 0 during page creation, but that shouldn't happen outside of a transaction... hopefully.",
70 "type": "integer",
71 "options": { "unsigned": true, "notnull": true }
72 },
73 {
74 "name": "page_len",
75 "comment": "Uncompressed length in bytes of the page's current source text.",
76 "type": "integer",
77 "options": { "unsigned": true, "notnull": true }
78 },
79 {
80 "name": "page_content_model",
81 "comment": "content model, see CONTENT_MODEL_XXX constants",
82 "type": "binary",
83 "options": { "length": 32, "notnull": false }
84 },
85 {
86 "name": "page_lang",
87 "comment": "Page content language",
88 "type": "binary",
89 "options": { "length": 35, "notnull": false }
90 }
91 ],
92 "indexes": [
93 {
94 "name": "page_name_title",
95 "columns": [ "page_namespace", "page_title" ],
96 "comment": "The title index. Care must be taken to always specify a namespace when by title, so that the index is used. Even listing all known namespaces with IN() is better than omitting page_namespace from the WHERE clause.",
97 "unique": true
98 },
99 {
100 "name": "page_random",
101 "columns": [ "page_random" ],
102 "comment": "Index for Special:Random",
103 "unique": false
104 },
105 {
106 "name": "page_len",
107 "columns": [ "page_len" ],
108 "comment": "Questionable utility, used by ProofreadPage, possibly DynamicPageList. ApiQueryAllPages unconditionally filters on namespace and so hopefully does not use it.",
109 "unique": false
110 },
111 {
112 "name": "page_redirect_namespace_len",
113 "columns": [ "page_is_redirect", "page_namespace", "page_len" ],
114 "comment": "The index for Special:Shortpages and Special:Longpages. Also SiteStats::articles() in 'comma' counting mode, MessageCache::loadFromDB().",
115 "unique": false
116 }
117 ],
118 "pk": [ "page_id" ]
119 },
120 "after": {
121 "name": "page",
122 "comment": "Core of the wiki: each page has an entry here which identifies it by title and contains some essential metadata.",
123 "columns": [
124 {
125 "name": "page_id",
126 "comment": "Unique identifier number. The page_id will be preserved across edits and rename operations, but not deletions and recreations.",
127 "type": "integer",
128 "options": { "unsigned": true, "notnull": true, "autoincrement": true }
129 },
130 {
131 "name": "page_namespace",
132 "comment": "A page name is broken into a namespace and a title. The namespace keys are UI-language-independent constants, defined in includes/Defines.php",
133 "type": "integer",
134 "options": { "notnull": true }
135 },
136 {
137 "name": "page_title",
138 "comment": "The rest of the title, as text. Spaces are transformed into underscores in title storage.",
139 "type": "binary",
140 "options": { "notnull": true, "length": 255 }
141 },
142 {
143 "name": "page_is_redirect",
144 "comment": "1 indicates the article is a redirect. If so, there is a row in the `redirect` table with rd_from=page_id, which contains the redirect target.",
145 "type": "mwtinyint",
146 "options": { "notnull": true, "unsigned": true, "default": 0 }
147 },
148 {
149 "name": "page_is_new",
150 "comment": "1 indicates this is a new entry, with only one edit. Not all pages with one edit are new pages.",
151 "type": "mwtinyint",
152 "options": { "notnull": true, "unsigned": true, "default": 0 }
153 },
154 {
155 "name": "page_random",
156 "comment": "Random value between 0 and 1, used for Special:Randompage",
157 "type": "float",
158 "options": {
159 "notnull": true,
160 "unsigned": true,
161 "CustomSchemaOptions": {
162 "doublePrecision": true
163 }
164 }
165 },
166 {
167 "name": "page_touched",
168 "comment": "This timestamp is updated whenever the page changes in a way requiring it to be re-rendered, invalidating caches. Aside from editing this includes permission changes, creation or deletion of linked pages, and alteration of contained templates.",
169 "type": "mwtimestamp",
170 "options": { "notnull": true }
171 },
172 {
173 "name": "page_links_updated",
174 "comment": "This timestamp is updated whenever a page is re-parsed and it has all the link tracking tables updated for it. This is useful for de-duplicating expensive backlink update jobs.",
175 "type": "mwtimestamp",
176 "options": {
177 "notnull": false,
178 "default": null
179 }
180 },
181 {
182 "name": "page_latest",
183 "comment": "Handy key to revision.rev_id of the current revision. This may be 0 during page creation, but that shouldn't happen outside of a transaction... hopefully.",
184 "type": "integer",
185 "options": { "unsigned": true, "notnull": true }
186 },
187 {
188 "name": "page_len",
189 "comment": "Uncompressed length in bytes of the page's current source text.",
190 "type": "integer",
191 "options": { "unsigned": true, "notnull": true }
192 },
193 {
194 "name": "page_content_model",
195 "comment": "content model, see CONTENT_MODEL_XXX constants",
196 "type": "binary",
197 "options": { "length": 32, "notnull": false }
198 },
199 {
200 "name": "page_lang",
201 "comment": "Page content language",
202 "type": "binary",
203 "options": { "length": 35, "notnull": false }
204 }
205 ],
206 "indexes": [
207 {
208 "name": "page_name_title",
209 "columns": [ "page_namespace", "page_title" ],
210 "comment": "The title index. Care must be taken to always specify a namespace when by title, so that the index is used. Even listing all known namespaces with IN() is better than omitting page_namespace from the WHERE clause.",
211 "unique": true
212 },
213 {
214 "name": "page_random",
215 "columns": [ "page_random" ],
216 "comment": "Index for Special:Random",
217 "unique": false
218 },
219 {
220 "name": "page_len",
221 "columns": [ "page_len" ],
222 "comment": "Questionable utility, used by ProofreadPage, possibly DynamicPageList. ApiQueryAllPages unconditionally filters on namespace and so hopefully does not use it.",
223 "unique": false
224 },
225 {
226 "name": "page_redirect_namespace_len",
227 "columns": [ "page_is_redirect", "page_namespace", "page_len" ],
228 "comment": "The index for Special:Shortpages and Special:Longpages. Also SiteStats::articles() in 'comma' counting mode, MessageCache::loadFromDB().",
229 "unique": false
230 }
231 ],
232 "pk": [ "page_id" ]
233 }
234 }