{
	"before": {
		"name": "imagelinks",
		"comment": "Track links to images *used inline* We don't distinguish live from broken links here, so they do not need to be changed on upload/removal.",
		"columns": [
			{
				"name": "il_from",
				"comment": "Key to page_id of the page containing the image / media link.",
				"type": "integer",
				"options": {
					"notnull": true,
					"unsigned": true,
					"default": 0
				}
			},
			{
				"name": "il_from_namespace",
				"type": "integer",
				"comment": "Namespace for this page",
				"options": {
					"notnull": true,
					"default": 0
				}
			},
			{
				"name": "il_to",
				"type": "binary",
				"comment": "Filename of target image. This is also the page_title of the file's description page; all such pages are in namespace 6 (NS_FILE).",
				"options": {
					"notnull": true,
					"length": 255,
					"default": ""
				}
			},
			{
				"name": "il_target_id",
				"type": "bigint",
				"comment": "Foreign key to linktarget.lt_id",
				"options": { "notnull": false, "unsigned": true }
			}
		],
		"indexes": [
			{
				"name": "il_to",
				"columns": [
					"il_to",
					"il_from"
				],
				"comment": "Reverse index, for Special:Whatlinkshere and file description page local usage",
				"unique": false
			},
			{
				"name": "il_backlinks_namespace",
				"columns": [
					"il_from_namespace",
					"il_to",
					"il_from"
				],
				"comment": "Index for Special:Whatlinkshere with namespace filter",
				"unique": false
			},
			{
				"name": "il_target_id",
				"columns": [
					"il_target_id",
					"il_from"
				],
				"comment": "Reverse index, for Special:Whatlinkshere and file description page local usage",
				"unique": false
			},
			{
				"name": "il_backlinks_namespace_target_id",
				"columns": [
					"il_from_namespace",
					"il_target_id",
					"il_from"
				],
				"comment": "Index for Special:Whatlinkshere with namespace filter",
				"unique": false
			}
		],
		"pk": [
			"il_from",
			"il_to"
		]
	},
	"after": {
		"name": "imagelinks",
		"comment": "Track links to images *used inline* We don't distinguish live from broken links here, so they do not need to be changed on upload/removal.",
		"columns": [
			{
				"name": "il_from",
				"comment": "Key to page_id of the page containing the image / media link.",
				"type": "integer",
				"options": {
					"notnull": true,
					"unsigned": true,
					"default": 0
				}
			},
			{
				"name": "il_from_namespace",
				"type": "integer",
				"comment": "Namespace for this page",
				"options": {
					"notnull": true,
					"default": 0
				}
			},
			{
				"name": "il_to",
				"type": "binary",
				"comment": "Filename of target image. This is also the page_title of the file's description page; all such pages are in namespace 6 (NS_FILE).",
				"options": {
					"notnull": true,
					"length": 255,
					"default": ""
				}
			},
			{
				"name": "il_target_id",
				"type": "bigint",
				"comment": "Foreign key to linktarget.lt_id",
				"options": {
					"notnull": true,
					"unsigned": true
				}
			}
		],
		"indexes": [
			{
				"name": "il_to",
				"columns": [
					"il_to",
					"il_from"
				],
				"comment": "Reverse index, for Special:Whatlinkshere and file description page local usage",
				"unique": false
			},
			{
				"name": "il_backlinks_namespace",
				"columns": [
					"il_from_namespace",
					"il_to",
					"il_from"
				],
				"comment": "Index for Special:Whatlinkshere with namespace filter",
				"unique": false
			},
			{
				"name": "il_target_id",
				"columns": [
					"il_target_id",
					"il_from"
				],
				"comment": "Reverse index, for Special:Whatlinkshere and file description page local usage",
				"unique": false
			},
			{
				"name": "il_backlinks_namespace_target_id",
				"columns": [
					"il_from_namespace",
					"il_target_id",
					"il_from"
				],
				"comment": "Index for Special:Whatlinkshere with namespace filter",
				"unique": false
			}
		],
		"pk": [
			"il_from",
			"il_target_id"
		]
	}
}
