去评论
dz插件网

Discuz!X3.5新增 回帖数据结构化所需的表结构需要升级的数据库语句

admin
2022/01/01 15:23:42
Discuz!X3.5新增 回帖数据结构化所需的表结构需要升级的数据库语句:

  1. ALTER TABLE `pre_forum_post` ADD `repid` int(10) unsigned NOT NULL DEFAULT '0' AFTER `tid`;

  2. ALTER TABLE `pre_forum_post` ADD `lastupdate` int(10) unsigned NOT NULL DEFAULT '0' AFTER `dateline`;

  3. ALTER TABLE `pre_forum_post` ADD `updateuid` int(10) unsigned NOT NULL DEFAULT '0' AFTER `lastupdate`;

  4. ALTER TABLE `pre_forum_post` ADD `premsg` text NOT NULL AFTER `updateuid`;


  5. DROP TABLE IF EXISTS pre_forum_post_history;
  6. CREATE TABLE pre_forum_post_history (
  7.   id int(10) unsigned NOT NULL,
  8.   pid int(10) unsigned NOT NULL,
  9.   dateline int(10) unsigned NOT NULL,
  10.   `subject` varchar(255) NOT NULL DEFAULT '',
  11.   message mediumtext NOT NULL,
  12.   PRIMARY KEY (id),
  13.   KEY pid (pid,dateline)
  14. ) ENGINE=InnoDB;