aboutsummaryrefslogtreecommitdiffstats
path: root/sql/abstractSchemaChanges/patch-sites-drop_indexes.json
blob: 62c32d26b3aef6ef9a9d16f03da37e5c3aca6729 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
{
	"comment": "Drop unused indexes of sites table",
	"before": {
		"name": "sites",
		"comment": "Holds all the sites known to the wiki.",
		"columns": [
			{
				"name": "site_id",
				"type": "integer",
				"comment": "Numeric id of the site",
				"options": { "unsigned": true, "notnull": true, "autoincrement": true }
			},
			{
				"name": "site_global_key",
				"type": "binary",
				"comment": "Global identifier for the site, ie 'enwiktionary'",
				"options": { "notnull": true, "length": 64 }
			},
			{
				"name": "site_type",
				"type": "binary",
				"comment": "Type of the site, ie 'mediawiki'",
				"options": { "notnull": true, "length": 32 }
			},
			{
				"name": "site_group",
				"type": "binary",
				"comment": "Group of the site, ie 'wikipedia'",
				"options": { "notnull": true, "length": 32 }
			},
			{
				"name": "site_source",
				"type": "binary",
				"comment": "Source of the site data, ie 'local', 'wikidata', 'my-magical-repo'",
				"options": { "notnull": true, "length": 32 }
			},
			{
				"name": "site_language",
				"type": "binary",
				"comment": "Language code of the sites primary language.",
				"options": { "notnull": true, "length": 35 }
			},
			{
				"name": "site_protocol",
				"type": "binary",
				"comment": "Protocol of the site, ie 'http://', 'irc://', '//'. This field is an index for lookups and is build from type specific data in site_data.",
				"options": { "notnull": true, "length": 32 }
			},
			{
				"name": "site_domain",
				"type": "string",
				"comment": "Domain of the site in reverse order, ie 'org.mediawiki.www.'. This field is an index for lookups and is build from type specific data in site_data.",
				"options": { "notnull": true, "length": 255 }
			},
			{
				"name": "site_data",
				"type": "blob",
				"comment": "Type dependent site data.",
				"options": { "notnull": true, "length": 65530 }
			},
			{
				"name": "site_forward",
				"type": "mwtinyint",
				"comment": "If site.tld/path/key:pageTitle should forward users to  the page on the actual site, where \"key\" is the local identifier.",
				"options": { "notnull": true, "length": 1 }
			},
			{
				"name": "site_config",
				"type": "blob",
				"comment": "Type dependent site config. For instance if template transclusion should be allowed if it's a MediaWiki.",
				"options": { "notnull": true, "length": 65530 }
			}
		],
		"indexes": [
			{ "name": "site_global_key", "columns": [ "site_global_key" ], "unique": true },
			{ "name": "site_type", "columns": [ "site_type" ], "unique": false },
			{ "name": "site_group", "columns": [ "site_group" ], "unique": false },
			{ "name": "site_source", "columns": [ "site_source" ], "unique": false },
			{ "name": "site_language", "columns": [ "site_language" ], "unique": false },
			{ "name": "site_protocol", "columns": [ "site_protocol" ], "unique": false },
			{ "name": "site_domain", "columns": [ "site_domain" ], "unique": false },
			{ "name": "site_forward", "columns": [ "site_forward" ], "unique": false }
		],
		"pk": [ "site_id" ]
	},
	"after": {
		"name": "sites",
		"comment": "Holds all the sites known to the wiki.",
		"columns": [
			{
				"name": "site_id",
				"type": "integer",
				"comment": "Numeric id of the site",
				"options": { "unsigned": true, "notnull": true, "autoincrement": true }
			},
			{
				"name": "site_global_key",
				"type": "binary",
				"comment": "Global identifier for the site, ie 'enwiktionary'",
				"options": { "notnull": true, "length": 64 }
			},
			{
				"name": "site_type",
				"type": "binary",
				"comment": "Type of the site, ie 'mediawiki'",
				"options": { "notnull": true, "length": 32 }
			},
			{
				"name": "site_group",
				"type": "binary",
				"comment": "Group of the site, ie 'wikipedia'",
				"options": { "notnull": true, "length": 32 }
			},
			{
				"name": "site_source",
				"type": "binary",
				"comment": "Source of the site data, ie 'local', 'wikidata', 'my-magical-repo'",
				"options": { "notnull": true, "length": 32 }
			},
			{
				"name": "site_language",
				"type": "binary",
				"comment": "Language code of the sites primary language.",
				"options": { "notnull": true, "length": 35 }
			},
			{
				"name": "site_protocol",
				"type": "binary",
				"comment": "Protocol of the site, ie 'http://', 'irc://', '//'. This field is an index for lookups and is build from type specific data in site_data.",
				"options": { "notnull": true, "length": 32 }
			},
			{
				"name": "site_domain",
				"type": "string",
				"comment": "Domain of the site in reverse order, ie 'org.mediawiki.www.'. This field is an index for lookups and is build from type specific data in site_data.",
				"options": { "notnull": true, "length": 255 }
			},
			{
				"name": "site_data",
				"type": "blob",
				"comment": "Type dependent site data.",
				"options": { "notnull": true, "length": 65530 }
			},
			{
				"name": "site_forward",
				"type": "mwtinyint",
				"comment": "If site.tld/path/key:pageTitle should forward users to  the page on the actual site, where \"key\" is the local identifier.",
				"options": { "notnull": true, "length": 1 }
			},
			{
				"name": "site_config",
				"type": "blob",
				"comment": "Type dependent site config. For instance if template transclusion should be allowed if it's a MediaWiki.",
				"options": { "notnull": true, "length": 65530 }
			}
		],
		"indexes": [
			{ "name": "site_global_key", "columns": [ "site_global_key" ], "unique": true }
		],
		"pk": [ "site_id" ]
	}
}