Skip to content

Commit

Permalink
A length for timestamp is invalid, and throws an error.
Browse files Browse the repository at this point in the history
  • Loading branch information
ionstorm66 committed May 24, 2012
1 parent e68dfd1 commit e91f1e5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions SuperSimpleBlogScriptV2_5_7/setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -234,9 +234,7 @@

//****CREATE THE DATABASE TABLE************************************************************************

#This query has been causing issues on some installs, so i am reverting back to the previous version
#$query = "CREATE TABLE `$SET9` (`comment` mediumtext NOT NULL, `time` timestamp(19) NOT NULL default CURRENT_TIMESTAMP, `image` TEXT NOT NULL default '', `title` varchar(40) NOT NULL default '', `uid` int(4) NOT NULL auto_increment, `comments` int(11) NOT NULL default '0', `postedBy` varchar(40) NOT NULL default '', PRIMARY KEY (`uid`))";
$query = "CREATE TABLE `$SET9` (`comment` mediumtext NOT NULL, `time` timestamp(14) NOT NULL, `image` TEXT NOT NULL default '', `title` varchar(80) NOT NULL default '', `uid` int(4) NOT NULL auto_increment, `comments` int(11) NOT NULL default '0', `postedBy` varchar(80) NOT NULL default '', PRIMARY KEY (`uid`))";
$query = "CREATE TABLE `$SET9` (`comment` mediumtext NOT NULL, `time` timestamp NOT NULL default CURRENT_TIMESTAMP, `image` TEXT NOT NULL default '', `title` varchar(40) NOT NULL default '', `uid` int(4) NOT NULL auto_increment, `comments` int(11) NOT NULL default '0', `postedBy` varchar(40) NOT NULL default '', PRIMARY KEY (`uid`))";
$result = @mysql_query ($query);

//*****************************************************************************************************
Expand Down

0 comments on commit e91f1e5

Please sign in to comment.