From 072f6f2c8389feea97c3d695395012a374fef27d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20D=C3=BCsterhus?= Date: Sun, 5 Feb 2012 19:57:39 +0100 Subject: [PATCH] Allow null value for roomID in suspensions --- install.sql | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install.sql b/install.sql index 5006577..e9dbc08 100644 --- a/install.sql +++ b/install.sql @@ -33,12 +33,12 @@ CREATE TABLE wcf1_chat_room ( DROP TABLE IF EXISTS wcf1_chat_room_suspension; CREATE TABLE wcf1_chat_room_suspension ( - roomID int(10) NOT NULL, userID int(10) NOT NULL, + roomID int(10) DEFAULT NULL, type tinyint(3) NOT NULL, time int(10) NOT NULL, - PRIMARY KEY (roomID, userID), - KEY userID (userID), + UNIQUE KEY main (userID, roomID), + KEY roomID (roomID), KEY type (type, time), KEY time (time) );