The version of vichan running on lainchan.org
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

32 lignes
1.0KB

  1. CREATE TABLE IF NOT EXISTS ``posts_{{ board }}`` (
  2. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  3. `thread` int(11) DEFAULT NULL,
  4. `subject` varchar(100) DEFAULT NULL,
  5. `email` varchar(30) DEFAULT NULL,
  6. `name` varchar(35) DEFAULT NULL,
  7. `trip` varchar(15) DEFAULT NULL,
  8. `capcode` varchar(50) DEFAULT NULL,
  9. `body` text NOT NULL,
  10. `body_nomarkup` text,
  11. `time` int(11) NOT NULL,
  12. `bump` int(11) DEFAULT NULL,
  13. `files` text DEFAULT NULL,
  14. `num_files` int(11) DEFAULT 0,
  15. `filehash` text CHARACTER SET ascii,
  16. `password` varchar(20) DEFAULT NULL,
  17. `ip` varchar(39) CHARACTER SET ascii NOT NULL,
  18. `sticky` int(1) NOT NULL,
  19. `locked` int(1) NOT NULL,
  20. `cycle` int(1) NOT NULL,
  21. `sage` int(1) NOT NULL,
  22. `embed` text,
  23. `slug` varchar(256) DEFAULT NULL,
  24. UNIQUE KEY `id` (`id`),
  25. KEY `thread_id` (`thread`,`id`),
  26. KEY `filehash` (`filehash`(40)),
  27. KEY `time` (`time`),
  28. KEY `ip` (`ip`),
  29. KEY `list_threads` (`thread`, `sticky`, `bump`)
  30. ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=1 ;