diff --git a/MySQL Database Defaults.sql b/MySQL Database Defaults.sql new file mode 100644 index 0000000..aad230a --- /dev/null +++ b/MySQL Database Defaults.sql @@ -0,0 +1,34 @@ +SET NAMES utf8; +SET FOREIGN_KEY_CHECKS = 0; + +-- ---------------------------- +-- Table structure for `messages` +-- ---------------------------- +DROP TABLE IF EXISTS `messages`; +CREATE TABLE `messages` ( + `rowid` int(10) unsigned NOT NULL AUTO_INCREMENT, + `target` text, + `nick` text, + `type` text, + `message` longblob, + `time` decimal(20,5) unsigned DEFAULT NULL, + PRIMARY KEY (`rowid`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8; + +-- ---------------------------- +-- Table structure for `settings` +-- ---------------------------- +DROP TABLE IF EXISTS `settings`; +CREATE TABLE `settings` ( + `name` text, + `value` text +) ENGINE=MyISAM DEFAULT CHARSET=utf8; + +-- ---------------------------- +-- Records of `settings` +-- ---------------------------- +BEGIN; +INSERT INTO `settings` VALUES ('replayAll', '0'), ('logLimit', '1'), ('logLevel', '1'); +COMMIT; + +SET FOREIGN_KEY_CHECKS = 1;