aboutsummaryrefslogtreecommitdiffstats
path: root/sql/abstractSchemaChanges/patch-site_identifiers-rename-indexes.json
blob: 76a561a0044832512cfc2184f0ed3ea2bb3669b5 (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
{
	"comment": "Rename indexes to have uniform si_ prefix with the columns (T270033)",
	"before": {
		"name": "site_identifiers",
		"comment": "Links local site identifiers to their corresponding site.",
		"columns": [
			{
				"name": "si_type",
				"comment": "local key type, ie 'interwiki' or 'langlink'",
				"type": "binary",
				"options": { "length": 32, "notnull": true }
			},
			{
				"name": "si_key",
				"comment": "local key value, ie 'en' or 'wiktionary'",
				"type": "binary",
				"options": { "length": 32, "notnull": true }
			},
			{
				"name": "si_site",
				"comment": "Key on sites.site_id",
				"type": "integer",
				"options": { "unsigned": true, "notnull": true }
			}
		],
		"indexes": [
			{ "name": "site_ids_site", "columns": [ "si_site" ], "unique": false },
			{ "name": "site_ids_key", "columns": [ "si_key" ], "unique": false }
		],
		"pk": [ "si_type", "si_key" ]
	},
	"after": {
		"name": "site_identifiers",
		"comment": "Links local site identifiers to their corresponding site.",
		"columns": [
			{
				"name": "si_type",
				"comment": "local key type, ie 'interwiki' or 'langlink'",
				"type": "binary",
				"options": { "length": 32, "notnull": true }
			},
			{
				"name": "si_key",
				"comment": "local key value, ie 'en' or 'wiktionary'",
				"type": "binary",
				"options": { "length": 32, "notnull": true }
			},
			{
				"name": "si_site",
				"comment": "Key on sites.site_id",
				"type": "integer",
				"options": { "unsigned": true, "notnull": true }
			}
		],
		"indexes": [
			{ "name": "si_site", "columns": [ "si_site" ], "unique": false },
			{ "name": "si_key", "columns": [ "si_key" ], "unique": false }
		],
		"pk": [ "si_type", "si_key" ]
	}
}