Debian Codegraph @

maintenance/abstractSchemaChanges/patch-site_identifiers-rename-indexes.json

raw symbols SCIP
1 {
2 "comment": "Rename indexes to have uniform si_ prefix with the columns (T270033)",
3 "before": {
4 "name": "site_identifiers",
5 "comment": "Links local site identifiers to their corresponding site.",
6 "columns": [
7 {
8 "name": "si_type",
9 "comment": "local key type, ie 'interwiki' or 'langlink'",
10 "type": "binary",
11 "options": { "length": 32, "notnull": true }
12 },
13 {
14 "name": "si_key",
15 "comment": "local key value, ie 'en' or 'wiktionary'",
16 "type": "binary",
17 "options": { "length": 32, "notnull": true }
18 },
19 {
20 "name": "si_site",
21 "comment": "Key on sites.site_id",
22 "type": "integer",
23 "options": { "unsigned": true, "notnull": true }
24 }
25 ],
26 "indexes": [
27 { "name": "site_ids_site", "columns": [ "si_site" ], "unique": false },
28 { "name": "site_ids_key", "columns": [ "si_key" ], "unique": false }
29 ],
30 "pk": [ "si_type", "si_key" ]
31 },
32 "after": {
33 "name": "site_identifiers",
34 "comment": "Links local site identifiers to their corresponding site.",
35 "columns": [
36 {
37 "name": "si_type",
38 "comment": "local key type, ie 'interwiki' or 'langlink'",
39 "type": "binary",
40 "options": { "length": 32, "notnull": true }
41 },
42 {
43 "name": "si_key",
44 "comment": "local key value, ie 'en' or 'wiktionary'",
45 "type": "binary",
46 "options": { "length": 32, "notnull": true }
47 },
48 {
49 "name": "si_site",
50 "comment": "Key on sites.site_id",
51 "type": "integer",
52 "options": { "unsigned": true, "notnull": true }
53 }
54 ],
55 "indexes": [
56 { "name": "si_site", "columns": [ "si_site" ], "unique": false },
57 { "name": "si_key", "columns": [ "si_key" ], "unique": false }
58 ],
59 "pk": [ "si_type", "si_key" ]
60 }
61 }