PHP Code:
<installcode><![CDATA[$db->hide_errors();
$db->query_write("CREATE TABLE `ewt_statistics` (
`rid` INT( 10 ) NOT NULL AUTO_INCREMENT ,
`uid` INT( 10 ) DEFAULT '0' NOT NULL ,
`sectionid` INT( 10 ) DEFAULT '0' NOT NULL ,
`thisscript` VARCHAR( 50 ) NOT NULL ,
`ipaddy` VARCHAR( 100 ) NOT NULL ,
`useragent` VARCHAR( 200 ) NOT NULL ,
PRIMARY KEY ( `rid` )
);");
$db->show_errors();]]></installcode>
<uninstallcode />
Why empty?
<uninstallcode />
Replace
PHP Code:
$db->hide_errors();
$vbulletin->db->query_write("
DROP TABLE `". TABLE_PREFIX ."ewt_statistics`
");
$db->show_errors();
AND
PHP Code:
$db->query_write("CREATE TABLE `ewt_statistics` (
replace
PHP Code:
$db->query_write("CREATE TABLE `". TABLE_PREFIX ."ewt_statistics` (