Simple Machines Community Forum

Archived Boards and Threads... => Archived Boards => SMF Feedback and Discussion => Aiheen aloitti: Azsman - maaliskuu 20, 2008, 02:20:54 AP

Otsikko: NEED HELP WITH RESTORING BACKUP FILES!
Kirjoitti: Azsman - maaliskuu 20, 2008, 02:20:54 AP
Hi! I had to reinstall smf but before i did i back up everything via the back up system supplied by smf, I'm now trying to restore everything via phpMyAdmin and i keep getting this error code!

LainaaError

SQL query:

CREATE TABLE `smf_gallery_comment` (
ID_COMMENT int( 11 ) NOT NULL AUTO_INCREMENT ,
ID_PICTURE int( 11 ) NOT NULL default '',
ID_MEMBER mediumint( 8 ) unsigned NOT NULL default 0,
approved tinyint( 4 ) NOT NULL default 0,
COMMENT text,
date int( 10 ) unsigned NOT NULL default 0,
PRIMARY KEY ( ID_COMMENT )
) TYPE = MYISAM ;

MySQL said: Documentation
#1067 - Invalid default value for 'ID_PICTURE'

Can somebody please help!?! :-[
Otsikko: Re: NEED HELP WITH RESTORING BACKUP FILES!
Kirjoitti: metallica48423 - maaliskuu 20, 2008, 03:12:06 AP
odd.  try default 0 or removing the default '' altogether
Otsikko: Re: NEED HELP WITH RESTORING BACKUP FILES!
Kirjoitti: Panzer- - maaliskuu 21, 2008, 12:45:57 AP
LainaaID_PICTURE int( 11 ) NOT NULL default '',

Its trying to set a default of NULL, when you specificly said NOT NULL.

As metal-licker said, remove the default'' but keep the comma at the end of the line.