×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Installed Manually, now i need the SQL tables

Installed Manually, now i need the SQL tables 15 years 8 months ago #2944

  • Mark
  • Mark's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 1
  • Thank you received: 0
Ok so i get the time out blank page problem when installed most components so as normal i installed this one manually.
All the files are uploaded in the right place, the admin menu is there and all links work, except that i don't have the comments tables installed in the database.. any chance i could get an sql file with all the default tables and settings as i couldn't find them in all the code.

Installed Manually, now i need the SQL tables 15 years 8 months ago #2948

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
The queries are stored in the utils.php as functions.
function getQuery_Create__comment()
    {
        $query = "CREATE TABLE `vpo_comment` (
                `id` INT(10) NOT NULL auto_increment,
                `contentid` INT(10) NOT NULL default '0',
                `component` VARCHAR(50) NOT NULL default '',
                `ip` VARCHAR(15) NOT NULL default '',
                `userid` int(11),
                `usertype` VARCHAR(25) NOT NULL default 'Unregistered',
                `date` DATETIME NOT NULL default '0000-00-00 00:00:00',
                `name` VARCHAR(30) NOT NULL default '',
                `email` VARCHAR(50) NOT NULL default '',
                `website` VARCHAR(100) NOT NULL default '',
                `notify` TINYINT(1) NOT NULL default '0',
                `title` VARCHAR(50) NOT NULL default '',
                `comment` TEXT NOT NULL,
                `published` TINYINT(1) NOT NULL default '0',
                `voting_yes` INT(10) NOT NULL default '0',
                `voting_no` INT(10) NOT NULL default '0',
                `parentid` INT(10) NOT NULL default '-1',
                `importedtable` VARCHAR(30) NOT NULL default '',
                `importedid` INT(10) NOT NULL default '0',
                `importedparentid` INT(10) NOT NULL default '-1',
                PRIMARY KEY  (`id`)) type=MyISAM;";
        return $query;
    }
 
        function getQuery_Create__comment_setting()
        {
            /* in case of change, don't forget to update the JOSC_josComment class */
	    $query = "CREATE TABLE `vpo_comment_setting` (
               `id` INT(11) NOT NULL auto_increment,
               `set_name` VARCHAR(50) NOT NULL default '',
               `set_component` VARCHAR(50) NOT NULL default '',
               `set_sectionid` INT(11) NOT NULL default '0',
               `params` text NOT NULL,
               PRIMARY KEY  (`id`))  type=MyISAM";
            return $query;
        }
 
        function getQuery_Create__comment_captcha()
        {
            $query = "CREATE TABLE IF NOT EXISTS `vpo_comment_captcha` (
        `ID` int(11) NOT NULL auto_increment,
        `insertdate` datetime NOT NULL default '0000-00-00 00:00:00',
        `referenceid` varchar(100) NOT NULL default '',
        `hiddentext` varchar(100) NOT NULL default '',
        PRIMARY KEY (`ID`)) type=MyISAM";
            return $query;
        }
 
        function getQuery_Create__comment_voting()
        {
            $query = "CREATE TABLE IF NOT EXISTS `vpo_comment_voting` (
        `id` INT(10) NOT NULL default '0',
        `ip` VARCHAR(15) NOT NULL default '',
        `time` INTEGER NOT NULL default '0') type=MyISAM";
            return $query;
        }
  • Page:
  • 1
Time to create page: 0.093 seconds