{
	"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" ]
	}
}
