mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2024-12-22 21:40:08 +00:00
Allow null value for roomID in suspensions
This commit is contained in:
parent
7ce9f47acc
commit
072f6f2c83
@ -33,12 +33,12 @@ CREATE TABLE wcf1_chat_room (
|
|||||||
|
|
||||||
DROP TABLE IF EXISTS wcf1_chat_room_suspension;
|
DROP TABLE IF EXISTS wcf1_chat_room_suspension;
|
||||||
CREATE TABLE wcf1_chat_room_suspension (
|
CREATE TABLE wcf1_chat_room_suspension (
|
||||||
roomID int(10) NOT NULL,
|
|
||||||
userID int(10) NOT NULL,
|
userID int(10) NOT NULL,
|
||||||
|
roomID int(10) DEFAULT NULL,
|
||||||
type tinyint(3) NOT NULL,
|
type tinyint(3) NOT NULL,
|
||||||
time int(10) NOT NULL,
|
time int(10) NOT NULL,
|
||||||
PRIMARY KEY (roomID, userID),
|
UNIQUE KEY main (userID, roomID),
|
||||||
KEY userID (userID),
|
KEY roomID (roomID),
|
||||||
KEY type (type, time),
|
KEY type (type, time),
|
||||||
KEY time (time)
|
KEY time (time)
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user