Debian Codegraph @

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

raw symbols SCIP
1 {
2 "comment": "Rename all indexes to have uniform ct_ prefix (T270033)",
3 "before": {
4 "name": "change_tag",
5 "comment": "A table to track tags for revisions, logs and recent changes",
6 "columns": [
7 {
8 "name": "ct_id",
9 "type": "integer",
10 "options": { "unsigned": true, "notnull": true, "autoincrement": true }
11 },
12 {
13 "name": "ct_rc_id",
14 "comment": "RCID for the change",
15 "type": "integer",
16 "options": { "unsigned": true, "notnull": false, "default": null }
17 },
18 {
19 "name": "ct_log_id",
20 "comment": "LOGID for the change",
21 "type": "integer",
22 "options": { "unsigned": true, "notnull": false, "default": null }
23 },
24 {
25 "name": "ct_rev_id",
26 "comment": "REVID for the change",
27 "type": "integer",
28 "options": { "unsigned": true, "notnull": false, "default": null }
29 },
30 {
31 "name": "ct_params",
32 "comment": "Parameters for the tag; used by some extensions",
33 "type": "blob",
34 "options": { "length": 65530, "notnull": false, "default": null }
35 },
36 {
37 "name": "ct_tag_id",
38 "comment": "Foreign key to change_tag_def row",
39 "type": "integer",
40 "options": { "unsigned": true, "notnull": true }
41 }
42 ],
43 "indexes": [
44 { "name": "change_tag_rc_tag_id", "columns": [ "ct_rc_id", "ct_tag_id" ], "unique": true },
45 { "name": "change_tag_log_tag_id", "columns": [ "ct_log_id", "ct_tag_id" ], "unique": true },
46 { "name": "change_tag_rev_tag_id", "columns": [ "ct_rev_id", "ct_tag_id" ], "unique": true },
47 {
48 "name": "change_tag_tag_id_id",
49 "comment": "Covering index, so we can pull all the info only out of the index.",
50 "columns": [ "ct_tag_id", "ct_rc_id", "ct_rev_id", "ct_log_id" ],
51 "unique": false
52 }
53 ],
54 "pk": [ "ct_id" ]
55 },
56 "after": {
57 "name": "change_tag",
58 "comment": "A table to track tags for revisions, logs and recent changes",
59 "columns": [
60 {
61 "name": "ct_id",
62 "type": "integer",
63 "options": { "unsigned": true, "notnull": true, "autoincrement": true }
64 },
65 {
66 "name": "ct_rc_id",
67 "comment": "RCID for the change",
68 "type": "integer",
69 "options": { "unsigned": true, "notnull": false, "default": null }
70 },
71 {
72 "name": "ct_log_id",
73 "comment": "LOGID for the change",
74 "type": "integer",
75 "options": { "unsigned": true, "notnull": false, "default": null }
76 },
77 {
78 "name": "ct_rev_id",
79 "comment": "REVID for the change",
80 "type": "integer",
81 "options": { "unsigned": true, "notnull": false, "default": null }
82 },
83 {
84 "name": "ct_params",
85 "comment": "Parameters for the tag; used by some extensions",
86 "type": "blob",
87 "options": { "length": 65530, "notnull": false, "default": null }
88 },
89 {
90 "name": "ct_tag_id",
91 "comment": "Foreign key to change_tag_def row",
92 "type": "integer",
93 "options": { "unsigned": true, "notnull": true }
94 }
95 ],
96 "indexes": [
97 { "name": "ct_rc_tag_id", "columns": [ "ct_rc_id", "ct_tag_id" ], "unique": true },
98 { "name": "ct_log_tag_id", "columns": [ "ct_log_id", "ct_tag_id" ], "unique": true },
99 { "name": "ct_rev_tag_id", "columns": [ "ct_rev_id", "ct_tag_id" ], "unique": true },
100 {
101 "name": "ct_tag_id_id",
102 "comment": "Covering index, so we can pull all the info only out of the index.",
103 "columns": [ "ct_tag_id", "ct_rc_id", "ct_rev_id", "ct_log_id" ],
104 "unique": false
105 }
106 ],
107 "pk": [ "ct_id" ]
108 }
109 }