From 1c149f9dafe4789c460da04771e22dbf1d0a4b7a Mon Sep 17 00:00:00 2001 From: Jocelyn Fiat Date: Tue, 17 Oct 2017 13:42:44 +0200 Subject: [PATCH] Fixed sql for user profile installation. Escape "key" with backquote to be compatible with MySQL. --- modules/core/site/scripts/user_profile.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/core/site/scripts/user_profile.sql b/modules/core/site/scripts/user_profile.sql index c9adf65..470f4f3 100644 --- a/modules/core/site/scripts/user_profile.sql +++ b/modules/core/site/scripts/user_profile.sql @@ -2,5 +2,5 @@ CREATE TABLE user_profiles( `uid` INTEGER NOT NULL CHECK("uid">=0), `key` VARCHAR(255) NOT NULL, `value` TEXT, - CONSTRAINT PK_uid_key PRIMARY KEY (uid,key) + CONSTRAINT PK_uid_key PRIMARY KEY (`uid`,`key`) );