Merge pull request #2075 from powerhome/fix/rainloop-system-missing-primary-key

Add missing primary key to rainloop_system table
This commit is contained in:
RainLoop Team 2021-04-22 19:00:33 +03:00 committed by GitHub
commit ab36112eab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -442,9 +442,11 @@ abstract class PdoAbstract
{
case 'mysql':
$aQ[] = 'CREATE TABLE IF NOT EXISTS rainloop_system (
id bigint UNSIGNED NOT NULL AUTO_INCREMENT,
sys_name varchar(50) NOT NULL,
value_int int UNSIGNED NOT NULL DEFAULT 0,
value_str varchar(128) NOT NULL DEFAULT \'\',
PRIMARY KEY(id),
INDEX sys_name_rainloop_system_index (sys_name)
) /*!40000 ENGINE=INNODB *//*!40101 CHARACTER SET utf8 COLLATE utf8_general_ci */;';
$aQ[] = 'CREATE TABLE IF NOT EXISTS rainloop_users (
@ -600,4 +602,4 @@ rl_email text NOT NULL DEFAULT \'\'
return $bResult;
}
}
}