Debian Codegraph @

extensions/Linter/sql/abstractSchemaChanges/patch-linter-fix-params-null-definition.json

raw symbols SCIP
1 {
2 "comment": "Fix linter table linter_params definition to not be nullable (T327806)",
3 "before": {
4 "name": "linter",
5 "columns": [
6 {
7 "name": "linter_id",
8 "type": "integer",
9 "options": { "notnull": true, "unsigned": true, "autoincrement": true }
10 },
11 {
12 "name": "linter_page",
13 "comment": "page id",
14 "type": "integer",
15 "options": { "notnull": true, "unsigned": true }
16 },
17 {
18 "name": "linter_namespace",
19 "comment": "page namespace",
20 "type": "integer",
21 "options": { "notnull": false, "unsigned": false }
22 },
23 {
24 "name": "linter_cat",
25 "comment": "error category (see CategoryManager::$categoryIds)",
26 "type": "integer",
27 "options": { "notnull": true, "unsigned": true }
28 },
29 {
30 "name": "linter_start",
31 "comment": "end positions of where the error is located",
32 "type": "integer",
33 "options": { "notnull": true, "unsigned": true }
34 },
35 {
36 "name": "linter_end",
37 "comment": "end positions of where the error is located",
38 "type": "integer",
39 "options": { "notnull": true, "unsigned": true }
40 },
41 {
42 "name": "linter_params",
43 "comment": "extra parameters about the error, JSON encoded",
44 "type": "blob",
45 "options": { "length": 65530, "notnull": false }
46 },
47 {
48 "name": "linter_template",
49 "comment": "name of a template if used or empty",
50 "type": "binary",
51 "options": { "notnull": true, "length": 255, "default": "" }
52 },
53 {
54 "name": "linter_tag",
55 "comment": "name of tag if used or empty",
56 "type": "binary",
57 "options": { "notnull": true, "length": 32, "default": "" }
58 }
59 ],
60 "indexes": [
61 {
62 "name": "linter_page",
63 "comment": "Query by page",
64 "columns": [ "linter_page" ],
65 "unique": false
66 },
67 {
68 "name": "linter_cat_namespace",
69 "comment": "Query by category and namespace",
70 "columns": [ "linter_cat", "linter_namespace" ],
71 "unique": false
72 },
73 {
74 "name": "linter_cat_page_position",
75 "comment": "Unique index for lint errors, also covers linter_cat for query by category",
76 "columns": [ "linter_cat", "linter_page", "linter_start", "linter_end" ],
77 "unique": true
78 },
79 {
80 "name": "linter_cat_template",
81 "comment": "Query by template",
82 "columns": [ "linter_cat", "linter_template" ],
83 "unique": false
84 },
85 {
86 "name": "linter_cat_tag",
87 "comment": "Query by tag",
88 "columns": [ "linter_cat", "linter_tag" ],
89 "unique": false
90 }
91 ],
92 "pk": [ "linter_id" ]
93 },
94 "after": {
95 "name": "linter",
96 "columns": [
97 {
98 "name": "linter_id",
99 "type": "integer",
100 "options": { "notnull": true, "unsigned": true, "autoincrement": true }
101 },
102 {
103 "name": "linter_page",
104 "comment": "page id",
105 "type": "integer",
106 "options": { "notnull": true, "unsigned": true }
107 },
108 {
109 "name": "linter_namespace",
110 "comment": "page namespace",
111 "type": "integer",
112 "options": { "notnull": false, "unsigned": false }
113 },
114 {
115 "name": "linter_cat",
116 "comment": "error category (see CategoryManager::$categoryIds)",
117 "type": "integer",
118 "options": { "notnull": true, "unsigned": true }
119 },
120 {
121 "name": "linter_start",
122 "comment": "end positions of where the error is located",
123 "type": "integer",
124 "options": { "notnull": true, "unsigned": true }
125 },
126 {
127 "name": "linter_end",
128 "comment": "end positions of where the error is located",
129 "type": "integer",
130 "options": { "notnull": true, "unsigned": true }
131 },
132 {
133 "name": "linter_params",
134 "comment": "extra parameters about the error, JSON encoded",
135 "type": "blob",
136 "options": { "length": 65530, "notnull": true }
137 },
138 {
139 "name": "linter_template",
140 "comment": "name of a template if used or empty",
141 "type": "binary",
142 "options": { "notnull": true, "length": 255, "default": "" }
143 },
144 {
145 "name": "linter_tag",
146 "comment": "name of tag if used or empty",
147 "type": "binary",
148 "options": { "notnull": true, "length": 32, "default": "" }
149 }
150 ],
151 "indexes": [
152 {
153 "name": "linter_page",
154 "comment": "Query by page",
155 "columns": [ "linter_page" ],
156 "unique": false
157 },
158 {
159 "name": "linter_cat_namespace",
160 "comment": "Query by category and namespace",
161 "columns": [ "linter_cat", "linter_namespace" ],
162 "unique": false
163 },
164 {
165 "name": "linter_cat_page_position",
166 "comment": "Unique index for lint errors, also covers linter_cat for query by category",
167 "columns": [ "linter_cat", "linter_page", "linter_start", "linter_end" ],
168 "unique": true
169 },
170 {
171 "name": "linter_cat_template",
172 "comment": "Query by template",
173 "columns": [ "linter_cat", "linter_template" ],
174 "unique": false
175 },
176 {
177 "name": "linter_cat_tag",
178 "comment": "Query by tag",
179 "columns": [ "linter_cat", "linter_tag" ],
180 "unique": false
181 }
182 ],
183 "pk": [ "linter_id" ]
184 }
185 }