From 4fbb55d5007be2e136b00af3d0a829d561ca3a18 Mon Sep 17 00:00:00 2001 From: Alexandr Dubovikov Date: Fri, 17 Jul 2015 12:24:43 +0200 Subject: [PATCH] ip and port are uniq --- sql/schema_configuration.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql/schema_configuration.sql b/sql/schema_configuration.sql index 9692e8a..7b33650 100644 --- a/sql/schema_configuration.sql +++ b/sql/schema_configuration.sql @@ -21,7 +21,7 @@ CREATE TABLE IF NOT EXISTS `alias` ( `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`id`), UNIQUE KEY `id` (`id`), - UNIQUE KEY `host_2` (`ip`), + UNIQUE KEY `host_2` (`ip`,`port`), KEY `host` (`ip`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8;