CREATE TABLE IF NOT EXISTS /*_*/password_history (
	ph_user integer unsigned NOT NULL, -- FK to user id
	ph_password mediumblob NOT NULL, -- password hash
	ph_timestamp varbinary(14) NOT NULL DEFAULT '',
	PRIMARY KEY (ph_user, ph_timestamp)
) /*$wgDBTableOptions*/;

CREATE INDEX /*i*/age ON /*_*/password_history (ph_timestamp);