mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2024-10-31 14:10:08 +00:00
Column-Types in install.sql are uppercase now
This commit is contained in:
parent
5c9e658e12
commit
d2ad9670b7
49
install.sql
49
install.sql
@ -1,18 +1,18 @@
|
|||||||
DROP TABLE IF EXISTS wcf1_chat_message;
|
DROP TABLE IF EXISTS wcf1_chat_message;
|
||||||
CREATE TABLE wcf1_chat_message (
|
CREATE TABLE wcf1_chat_message (
|
||||||
messageID int(10) NOT NULL AUTO_INCREMENT,
|
messageID INT(10) NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
||||||
roomID int(10) NOT NULL,
|
roomID INT(10) NOT NULL,
|
||||||
sender int(10) DEFAULT NULL,
|
sender INT(10) DEFAULT NULL,
|
||||||
username varchar(255) DEFAULT NULL,
|
username VARCHAR(255) DEFAULT NULL,
|
||||||
receiver int(10) DEFAULT NULL,
|
receiver INT(10) DEFAULT NULL,
|
||||||
time int(10) NOT NULL,
|
time INT(10) NOT NULL,
|
||||||
type tinyint(3) NOT NULL DEFAULT 1,
|
type TINYINT(3) NOT NULL DEFAULT 1,
|
||||||
message mediumtext NOT NULL,
|
message MEDIUMTEXT NOT NULL,
|
||||||
enableSmilies tinyint(1) NOT NULL DEFAULT 1,
|
enableSmilies TINYINT(1) NOT NULL DEFAULT 1,
|
||||||
enableHTML tinyint(1) NOT NULL DEFAULT 0,
|
enableHTML TINYINT(1) NOT NULL DEFAULT 0,
|
||||||
color1 int(10) NOT NULL DEFAULT 0,
|
color1 INT(10) NOT NULL DEFAULT 0,
|
||||||
color2 int(10) NOT NULL DEFAULT 0,
|
color2 INT(10) NOT NULL DEFAULT 0,
|
||||||
PRIMARY KEY (messageID),
|
|
||||||
KEY roomID (roomID),
|
KEY roomID (roomID),
|
||||||
KEY sender (sender),
|
KEY sender (sender),
|
||||||
KEY receiver (receiver)
|
KEY receiver (receiver)
|
||||||
@ -20,23 +20,24 @@ CREATE TABLE wcf1_chat_message (
|
|||||||
|
|
||||||
DROP TABLE IF EXISTS wcf1_chat_room;
|
DROP TABLE IF EXISTS wcf1_chat_room;
|
||||||
CREATE TABLE wcf1_chat_room (
|
CREATE TABLE wcf1_chat_room (
|
||||||
roomID int(10) NOT NULL AUTO_INCREMENT,
|
roomID INT(10) NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
||||||
title varchar(255) NOT NULL,
|
title VARCHAR(255) NOT NULL,
|
||||||
topic varchar(255) NOT NULL,
|
topic VARCHAR(255) NOT NULL,
|
||||||
position int(10) NOT NULL DEFAULT 0,
|
position INT(10) NOT NULL DEFAULT 0,
|
||||||
permanent tinyint(1) NOT NULL DEFAULT 1,
|
permanent TINYINT(1) NOT NULL DEFAULT 1,
|
||||||
owner int(10) DEFAULT NULL,
|
owner INT(10) DEFAULT NULL,
|
||||||
PRIMARY KEY (roomID),
|
|
||||||
KEY positionKey (position),
|
KEY positionKey (position),
|
||||||
KEY owner (owner)
|
KEY owner (owner)
|
||||||
);
|
);
|
||||||
|
|
||||||
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 (
|
||||||
userID int(10) NOT NULL,
|
userID INT(10) NOT NULL,
|
||||||
roomID int(10) DEFAULT 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,
|
||||||
|
|
||||||
UNIQUE KEY main (userID, roomID),
|
UNIQUE KEY main (userID, roomID),
|
||||||
KEY roomID (roomID),
|
KEY roomID (roomID),
|
||||||
KEY type (type, time),
|
KEY type (type, time),
|
||||||
|
Loading…
Reference in New Issue
Block a user