+ Reply to Thread
Results 1 to 2 of 2

Thread: How do I rebuild the [forum] post table?

  1. #1
    New Member stwilson is on a distinguished road
    Join Date
    Dec 2006
    Location
    Chandler, AZ
    Posts
    24

    How do I rebuild the [forum] post table?

    I was multitasking and erroneously delted my post table when I was trying to empty it. I have a custom template applied to my forum so I do not want to reinstall and blow out all my settings.

    Can someone point me in the right direction to just rebuild the post table? Is there a script I can run to just create this table? I appreciate any directiom you can offer.
    stwilson

  2. #2
    (formerly peterska2) peterska2 will become famous soon enough
    Join Date
    Oct 2003
    Location
    England
    Age
    29
    Posts
    8,874
    Code:
    CREATE TABLE `PREFIX_post` (
      `postid` int(10) unsigned NOT NULL auto_increment,
      `threadid` int(10) unsigned NOT NULL default '0',
      `parentid` int(10) unsigned NOT NULL default '0',
      `username` varchar(100) NOT NULL default '',
      `userid` int(10) unsigned NOT NULL default '0',
      `title` varchar(250) NOT NULL default '',
      `dateline` int(10) unsigned NOT NULL default '0',
      `pagetext` mediumtext,
      `allowsmilie` smallint(6) NOT NULL default '0',
      `showsignature` smallint(6) NOT NULL default '0',
      `ipaddress` char(15) NOT NULL default '',
      `iconid` smallint(5) unsigned NOT NULL default '0',
      `visible` smallint(6) NOT NULL default '0',
      `attach` smallint(5) unsigned NOT NULL default '0',
      `infraction` smallint(5) unsigned NOT NULL default '0',
      `reportthreadid` int(10) unsigned NOT NULL default '0',
      PRIMARY KEY  (`postid`),
      KEY `userid` (`userid`),
      KEY `threadid` (`threadid`,`userid`),
      FULLTEXT KEY `title` (`title`,`pagetext`)
    ) ENGINE=MyISAM
    Replace PREFIX_ with your table prefix if you use one.

+ Reply to Thread

Similar Threads

  1. Why do odd page breaks occur in a post in my forum when I create a table?
    By Vigile in forum vBulletin 2 'How Do I' and Troubleshooting
    Replies: 2
    Last Post: Thu 24th Apr '08, 5:22pm
  2. Forum ID included in post SQL table
    By TosaInu in forum vBulletin Suggestions and Feedback
    Replies: 3
    Last Post: Fri 11th Feb '05, 7:48am
  3. rebuild table
    By Samthesham in forum vBulletin 3.0 How Do I and Troubleshooting Forum
    Replies: 1
    Last Post: Mon 10th Jan '05, 1:35am
  4. How do I rebuild the userfield table?
    By rsuplido in forum vBulletin 2 'How Do I' and Troubleshooting
    Replies: 1
    Last Post: Sat 11th Jan '03, 12:41pm

Bookmarks

Posting Permissions

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts