Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/processone/ejabberd.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJérôme Sautret <jerome.sautret@process-one.net>2018-02-05 15:04:25 +0300
committerGitHub <noreply@github.com>2018-02-05 15:04:25 +0300
commit411d1711a08169820c7b7f8bd2a1f3173c91330d (patch)
tree13b525ed42b0d4ad960852db8789dd3aceb93412
parentc990abf22284b485480b678841f583ed4558362b (diff)
parentbef7d1ba6628669d1bd36ee90414ab0b54c55714 (diff)
Merge pull request #2266 from mieciu/master
Fix MySQL ERROR 1170 (42000) 'server_host'
-rw-r--r--sql/mysql.new.sql4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/mysql.new.sql b/sql/mysql.new.sql
index de37fadb7..c155794ee 100644
--- a/sql/mysql.new.sql
+++ b/sql/mysql.new.sql
@@ -422,7 +422,7 @@ CREATE TABLE carboncopy (
PRIMARY KEY (server_host(191), username(191), resource(191))
) ENGINE=InnoDB CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
-CREATE INDEX i_carboncopy_sh_user ON carboncopy (server_host, username(75));
+CREATE INDEX i_carboncopy_sh_user ON carboncopy (server_host(191), username(75));
CREATE TABLE proxy65 (
sid text NOT NULL,
@@ -446,4 +446,4 @@ CREATE TABLE push_session (
PRIMARY KEY (server_host(191), username(191), timestamp)
);
-CREATE UNIQUE INDEX i_push_session_susn ON push_session (server_host, username(191), service(191), node(191));
+CREATE UNIQUE INDEX i_push_session_susn ON push_session (server_host(191), username(191), service(191), node(191));