Skip to content
Snippets Groups Projects
Commit e7fe31a7 authored by Marius Burkard's avatar Marius Burkard
Browse files

Revert unique forward

parent 22bef49d
No related branches found
No related tags found
1 merge request!1522Resolve "Duplicate forwards must be allowed, revert for #6212"
Pipeline #9436 passed
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
if(!defined('INSTALLER_RUN')) die('Patch update file access violation.'); if(!defined('INSTALLER_RUN')) die('Patch update file access violation.');
class upd_0094 extends installer_patch_update { /*class upd_0094 extends installer_patch_update {
public function onBeforeSQL() { public function onBeforeSQL() {
global $inst; global $inst;
...@@ -12,3 +12,4 @@ class upd_0094 extends installer_patch_update { ...@@ -12,3 +12,4 @@ class upd_0094 extends installer_patch_update {
} }
} }
*/
\ No newline at end of file
...@@ -7,7 +7,7 @@ ALTER TABLE `spamfilter_users` ALTER `policy_id` SET DEFAULT 0; ...@@ -7,7 +7,7 @@ ALTER TABLE `spamfilter_users` ALTER `policy_id` SET DEFAULT 0;
-- mail_forwarding.source must be unique -- mail_forwarding.source must be unique
ALTER TABLE `mail_forwarding` DROP KEY `server_id`; ALTER TABLE `mail_forwarding` DROP KEY `server_id`;
ALTER TABLE `mail_forwarding` ADD UNIQUE KEY `server_id` (`server_id`, `source`); ALTER TABLE `mail_forwarding` ADD KEY `server_id` (`server_id`, `source`);
-- Purge apps & addons installer (#5795) - second time due to syntax error in 0093 -- Purge apps & addons installer (#5795) - second time due to syntax error in 0093
DROP TABLE IF EXISTS `software_package`; DROP TABLE IF EXISTS `software_package`;
......
...@@ -918,7 +918,7 @@ CREATE TABLE `mail_forwarding` ( ...@@ -918,7 +918,7 @@ CREATE TABLE `mail_forwarding` (
`allow_send_as` ENUM('n','y') NOT NULL DEFAULT 'n', `allow_send_as` ENUM('n','y') NOT NULL DEFAULT 'n',
`greylisting` enum('n','y' ) NOT NULL DEFAULT 'n', `greylisting` enum('n','y' ) NOT NULL DEFAULT 'n',
PRIMARY KEY (`forwarding_id`), PRIMARY KEY (`forwarding_id`),
UNIQUE KEY `server_id` (`server_id`, `source`), KEY `server_id` (`server_id`, `source`),
KEY `type` (`type`) KEY `type` (`type`)
) DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; ) DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
......
...@@ -83,8 +83,6 @@ $form["tabs"]['alias'] = array ( ...@@ -83,8 +83,6 @@ $form["tabs"]['alias'] = array (
), ),
'validators' => array ( 0 => array ( 'type' => 'ISEMAIL', 'validators' => array ( 0 => array ( 'type' => 'ISEMAIL',
'errmsg'=> 'email_error_isemail'), 'errmsg'=> 'email_error_isemail'),
1 => array ( 'type' => 'UNIQUE',
'errmsg'=> 'email_error_unique'),
), ),
'default' => '', 'default' => '',
'value' => '', 'value' => '',
......
...@@ -83,8 +83,6 @@ $form["tabs"]['forward'] = array ( ...@@ -83,8 +83,6 @@ $form["tabs"]['forward'] = array (
), ),
'validators' => array ( 0 => array ( 'type' => 'ISEMAIL', 'validators' => array ( 0 => array ( 'type' => 'ISEMAIL',
'errmsg'=> 'email_error_isemail'), 'errmsg'=> 'email_error_isemail'),
1 => array ( 'type' => 'UNIQUE',
'errmsg'=> 'email_error_unique'),
), ),
'default' => '', 'default' => '',
'value' => '', 'value' => '',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment