Prevent duplicates in ipsandports table

This commit is contained in:
Grigory Morozov
2016-09-26 22:52:03 +07:00
committed by GitHub
parent ed0ede645a
commit 06a55ef91e

View File

@@ -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;