ZNC Modules for SQLite and MySQL
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
1.2 KiB

  1. SET NAMES utf8;
  2. SET FOREIGN_KEY_CHECKS = 0;
  3. -- ----------------------------
  4. -- Table structure for `messages`
  5. -- ----------------------------
  6. DROP TABLE IF EXISTS `messages`;
  7. CREATE TABLE `messages` (
  8. `rowid` int(10) unsigned NOT NULL AUTO_INCREMENT,
  9. `target` text,
  10. `nick` text,
  11. `type` text,
  12. `message` longblob,
  13. `time` decimal(20,5) unsigned DEFAULT NULL,
  14. PRIMARY KEY (`rowid`)
  15. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  16. -- ----------------------------
  17. -- Table structure for `settings`
  18. -- ----------------------------
  19. DROP TABLE IF EXISTS `settings`;
  20. CREATE TABLE `settings` (
  21. `name` text,
  22. `value` text
  23. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  24. -- ----------------------------
  25. -- Records of `settings`
  26. -- ----------------------------
  27. BEGIN;
  28. INSERT INTO `settings` VALUES ('replayAll', '0'), ('logLimit', '1'), ('logLevel', '1');
  29. COMMIT;
  30. -- ----------------------------
  31. -- Table structure for `ignorelist`
  32. -- ----------------------------
  33. DROP TABLE IF EXISTS `ignorelist`;
  34. CREATE TABLE `ignorelist` (
  35. `rowid` int(10) unsigned NOT NULL AUTO_INCREMENT,
  36. `type` text,
  37. `target` text,
  38. PRIMARY KEY (`rowid`)
  39. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  40. SET FOREIGN_KEY_CHECKS = 1;