From 07995c02c42d0fec4aa8ae1c2968c89334224b09 Mon Sep 17 00:00:00 2001 From: MAGIC Date: Mon, 30 Oct 2017 23:21:29 +0100 Subject: [PATCH] Adding a primary key in domain_admins table --- data/web/inc/init_db.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data/web/inc/init_db.inc.php b/data/web/inc/init_db.inc.php index 16f3fdf2..01f05105 100644 --- a/data/web/inc/init_db.inc.php +++ b/data/web/inc/init_db.inc.php @@ -248,8 +248,8 @@ function init_db_schema() { "active" => "TINYINT(1) NOT NULL DEFAULT '1'" ), "keys" => array( - "key" => array( - "username" => array("username") + "primary" => array( + "" => array("username", "domain") ) ), "attr" => "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC"