aboutsummaryrefslogtreecommitdiffstats
path: root/sql/abstractSchemaChanges/patch-watchlist-namespace_title-rename-index.json
blob: 2a29e5767344efae1e885cc4747b6c5e75a444d9 (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
{
	"comment": "Rename namespace_title index to wl_namespace_title on watchlist (T266228)",
	"before": {
		"name": "watchlist",
		"columns": [
			{
				"name": "wl_id",
				"type": "integer",
				"options": { "unsigned": true, "notnull": true, "autoincrement": true }
			},
			{
				"name": "wl_user",
				"type": "integer",
				"options": { "notnull": true, "unsigned": true }
			},
			{
				"name": "wl_namespace",
				"type": "integer",
				"options": { "notnull": true, "unsigned": false, "default": 0 }
			},
			{
				"name": "wl_title",
				"type": "binary",
				"options": { "length": 255, "notnull": true, "default": "" }
			},
			{
				"name": "wl_notificationtimestamp",
				"comment": "Timestamp used to send notification e-mails and show 'updated since last visit' markers. Set to NULL when the user visits the latest revision of the page, which means that they should be sent an e-mail on the next change.",
				"type": "mwtimestamp",
				"options": { "notnull": false }
			}
		],
		"indexes": [
			{
				"name": "wl_user",
				"columns": [ "wl_user", "wl_namespace", "wl_title" ],
				"comment": "Special:Watchlist",
				"unique": true
			},
			{
				"name": "namespace_title",
				"columns": [ "wl_namespace", "wl_title" ],
				"comment": "Special:Movepage (WatchedItemStore::duplicateEntry)",
				"unique": false
			},
			{
				"name": "wl_user_notificationtimestamp",
				"columns": [ "wl_user", "wl_notificationtimestamp" ],
				"comment": "ApiQueryWatchlistRaw changed filter",
				"unique": false
			}
		],
		"pk": [ "wl_id" ]
	},
	"after": {
		"name": "watchlist",
		"columns": [
			{
				"name": "wl_id",
				"type": "integer",
				"options": { "unsigned": true, "notnull": true, "autoincrement": true }
			},
			{
				"name": "wl_user",
				"type": "integer",
				"options": { "notnull": true, "unsigned": true }
			},
			{
				"name": "wl_namespace",
				"type": "integer",
				"options": { "notnull": true, "unsigned": false, "default": 0 }
			},
			{
				"name": "wl_title",
				"type": "binary",
				"options": { "length": 255, "notnull": true, "default": "" }
			},
			{
				"name": "wl_notificationtimestamp",
				"comment": "Timestamp used to send notification e-mails and show 'updated since last visit' markers. Set to NULL when the user visits the latest revision of the page, which means that they should be sent an e-mail on the next change.",
				"type": "mwtimestamp",
				"options": { "notnull": false }
			}
		],
		"indexes": [
			{
				"name": "wl_user",
				"columns": [ "wl_user", "wl_namespace", "wl_title" ],
				"comment": "Special:Watchlist",
				"unique": true
			},
			{
				"name": "wl_namespace_title",
				"columns": [ "wl_namespace", "wl_title" ],
				"comment": "Special:Movepage (WatchedItemStore::duplicateEntry)",
				"unique": false
			},
			{
				"name": "wl_user_notificationtimestamp",
				"columns": [ "wl_user", "wl_notificationtimestamp" ],
				"comment": "ApiQueryWatchlistRaw changed filter",
				"unique": false
			}
		],
		"pk": [ "wl_id" ]
	}
}