From 06a55ef91e280687e6a85912769dc35aeb84a151 Mon Sep 17 00:00:00 2001 From: Grigory Morozov Date: Mon, 26 Sep 2016 22:52:03 +0700 Subject: [PATCH] Prevent duplicates in ipsandports table --- install/froxlor.sql | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/install/froxlor.sql b/install/froxlor.sql index f30c943a..a91c7023 100644 --- a/install/froxlor.sql +++ b/install/froxlor.sql @@ -280,7 +280,8 @@ CREATE TABLE `panel_ipsandports` ( `default_vhostconf_domain` text, `ssl_cert_chainfile` varchar(255) NOT NULL, `docroot` varchar(255) NOT NULL default '', - PRIMARY KEY (`id`) + PRIMARY KEY (`id`), + UNIQUE KEY `ip_port` (`ip`,`port`) ) ENGINE=MyISAM CHARSET=utf8 COLLATE=utf8_general_ci;