Skip to content
upd_0094.php 484 B
Newer Older
<?php

if(!defined('INSTALLER_RUN')) die('Patch update file access violation.');

Marius Burkard's avatar
Marius Burkard committed
/*class upd_0094 extends installer_patch_update {

	public function onBeforeSQL() {
		global $inst;

		// Remove any duplicate mail_forwardings prior to adding unique key
		$inst->db->query("DELETE FROM mail_forwarding WHERE forwarding_id IN (SELECT forwarding_id FROM (SELECT forwarding_id, COUNT(source) AS source_count FROM mail_forwarding GROUP BY source HAVING source_count > 1) as t1)");
	}

}
Marius Burkard's avatar
Marius Burkard committed
*/