Skip to content

Commit e7fe31a

Browse files
author
Marius Burkard
committed
Revert unique forward
1 parent 22bef49 commit e7fe31a

File tree

5 files changed

+4
-7
lines changed

5 files changed

+4
-7
lines changed

install/patches/upd_0094.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

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

5-
class upd_0094 extends installer_patch_update {
5+
/*class upd_0094 extends installer_patch_update {
66
77
public function onBeforeSQL() {
88
global $inst;
@@ -12,3 +12,4 @@ public function onBeforeSQL() {
1212
}
1313
1414
}
15+
*/

install/sql/incremental/upd_dev_collection.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ALTER TABLE `spamfilter_users` ALTER `policy_id` SET DEFAULT 0;
77

88
-- mail_forwarding.source must be unique
99
ALTER TABLE `mail_forwarding` DROP KEY `server_id`;
10-
ALTER TABLE `mail_forwarding` ADD UNIQUE KEY `server_id` (`server_id`, `source`);
10+
ALTER TABLE `mail_forwarding` ADD KEY `server_id` (`server_id`, `source`);
1111

1212
-- Purge apps & addons installer (#5795) - second time due to syntax error in 0093
1313
DROP TABLE IF EXISTS `software_package`;

install/sql/ispconfig3.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -918,7 +918,7 @@ CREATE TABLE `mail_forwarding` (
918918
`allow_send_as` ENUM('n','y') NOT NULL DEFAULT 'n',
919919
`greylisting` enum('n','y' ) NOT NULL DEFAULT 'n',
920920
PRIMARY KEY (`forwarding_id`),
921-
UNIQUE KEY `server_id` (`server_id`, `source`),
921+
KEY `server_id` (`server_id`, `source`),
922922
KEY `type` (`type`)
923923
) DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
924924

interface/web/mail/form/mail_alias.tform.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,6 @@
8383
),
8484
'validators' => array ( 0 => array ( 'type' => 'ISEMAIL',
8585
'errmsg'=> 'email_error_isemail'),
86-
1 => array ( 'type' => 'UNIQUE',
87-
'errmsg'=> 'email_error_unique'),
8886
),
8987
'default' => '',
9088
'value' => '',

interface/web/mail/form/mail_forward.tform.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,6 @@
8383
),
8484
'validators' => array ( 0 => array ( 'type' => 'ISEMAIL',
8585
'errmsg'=> 'email_error_isemail'),
86-
1 => array ( 'type' => 'UNIQUE',
87-
'errmsg'=> 'email_error_unique'),
8886
),
8987
'default' => '',
9088
'value' => '',

0 commit comments

Comments
 (0)