View file upload/library/XenForo/Install/Upgrade/1051370-1513.php

File size: 560B
<?php

class XenForo_Install_Upgrade_1051370 extends XenForo_Install_Upgrade_Abstract
{
	public function getVersionName()
	{
		return '1.5.13';
	}

	public function step1()
	{
		$this->executeUpgradeQuery("
			ALTER TABLE xf_warning
				DROP INDEX expiry,
				ADD INDEX is_expired_expiry (is_expired, expiry_date),
				ADD INDEX warning_user_id (warning_user_id)
		");
	}

	public function step2()
	{
		$this->executeUpgradeQuery("
			ALTER TABLE xf_spam_cleaner_log
				ADD INDEX user_id (user_id),
				ADD INDEX applying_user_id (applying_user_id)
		");
	}
}