1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2024-11-19 17:00:08 +00:00
Tims-Chat/sql/0009-chat1_command.sql
2018-08-17 00:30:59 +02:00

10 lines
492 B
SQL

CREATE TABLE chat1_command ( commandID INT(10) NOT NULL AUTO_INCREMENT PRIMARY KEY
, packageID INT(10) NOT NULL
, identifier VARCHAR(191) NOT NULL
, className VARCHAR(191) NOT NULL
, UNIQUE KEY command (packageID, identifier)
);
ALTER TABLE chat1_command ADD FOREIGN KEY (packageID) REFERENCES wcf1_package (packageID) ON DELETE CASCADE;