Guest User

Untitled

a guest
Jun 21st, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.13 KB | None | 0 0
  1. CREATE TABLE chat ( chatid INT NOT NULL AUTO_INCREMENT,
  2. linktype TINYINT(4),
  3. linkid BIGINT,
  4. poster INT,
  5. projectid INT UNSIGNED NOT NULL DEFAULT 0,
  6. postdate DATETIME,
  7. inreplyto INT NOT NULL DEFAULT 0,
  8. deleted TINYINT(1) NOT NULL DEFAULT 0,
  9. message text,
  10. summary VARCHAR(255) NOT NULL DEFAULT '',
  11. fullpath TEXT NOT NULL,
  12. leafcount INT UNSIGNED NOT NULL DEFAULT 0,
  13. newestleafid INT UNSIGNED,
  14. channelid INT UNSIGNED,
  15. tran_flag TINYINT(1) UNSIGNED DEFAULT 0,
  16. PRIMARY KEY ( chatid ),
  17. INDEX ( linktype, linkid, chatid ),
  18. INDEX ( linkid, linktype, poster),
  19. INDEX ( poster, postdate ),
  20. INDEX ( channelid )
  21. )
  22. ENGINE = MyISAM
  23. INDEX DIRECTORY = '/home/mysql/INDEXES/INDEX1/'
  24.  
  25.  
  26. CREATE TABLE chat ( chatid INT NOT NULL AUTO_INCREMENT,
  27. projectid INT,
  28. linktype INT,
  29. linkid INT,
  30. personaid INT,
  31. postdate TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
  32. channelid INT UNSIGNED,
  33. inreplyto INT,
  34. fullpath CHAR(8),
  35. message TEXT,
  36. leafcount INT UNSIGNED NOT NULL DEFAULT 0,
  37. newestleafid INT UNSIGNED,
  38. deleted TINYINT(1) NOT NULL DEFAULT 0,
  39. PRIMARY KEY ( chatid ),
  40. INDEX ( projectid, linktype, linkid, personaid, postdate ),
  41. INDEX ( channelid )
  42. )
  43. ENGINE = MyISAM
  44. INDEX DIRECTORY = '/home/mysql/INDEXES/INDEX1/'
Add Comment
Please, Sign In to add comment