Permalink
Browse files

A length for timestamp is invalid, and throws an error.

  • Loading branch information...
1 parent e68dfd1 commit e91f1e528a422ec8ae952e296715ea37233a829c @ionstorm66 ionstorm66 committed May 24, 2012
Showing with 1 addition and 3 deletions.
  1. +1 −3 SuperSimpleBlogScriptV2_5_7/setup.php
@@ -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);
//*****************************************************************************************************

0 comments on commit e91f1e5

Please sign in to comment.