 |
 |
 |
 |
#262021 - 11/04/03 10:46 AM
Re: 6.4b1 Upgrade Error
[Re: BlarC]
|
Member
Registered: 04/05/01
Posts: 3440
Loc: abingdon,md
|
I would look in mysql error logs for a detail of the problem.<br /><br />I would think offhand from my experience that it is related to the user table and the addition of the birthday field. You need to use phpmyadmin and check out the table. You can open up the altertable file and may have to manually add the user table query <br /><br /> ALTER TABLE w3t_Users<br /> ADD U_Birthday VARCHAR(10) NOT NULL DEFAULT '0',<br /> ADD U_ShowBday INT(1) NOT NULL DEFAULT '0',<br /> ADD U_TimeFormat VARCHAR(6),<br /> ADD U_Ignored TEXT,<br /> ADD U_OC_Userid VARCHAR(64),<br /> ADD INDEX birthday_ndx (U_Birthday,U_ShowBday)<br /><br />Now if the above query does not run try running<br /><br /> ALTER TABLE w3t_Users<br /> ADD U_ShowBday INT(1) NOT NULL DEFAULT '0',<br /> ADD U_TimeFormat VARCHAR(6),<br /> ADD U_Ignored TEXT,<br /> ADD U_OC_Userid VARCHAR(64),<br /> ADD INDEX birthday_ndx (U_Birthday,U_ShowBday)<br /><br />At least thats what I remember when I upgraded a clean a few clean installs but all that had the birthday hack.
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#262024 - 11/04/03 11:03 AM
Re: 6.4b1 Upgrade Error
[Re: BlarC]
|
Member
Registered: 04/05/01
Posts: 3440
Loc: abingdon,md
|
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#262031 - 11/10/03 03:55 PM
Re: 6.4b1 Upgrade Error
[Re: BlarC]
|
Junior Member
Registered: 05/12/03
Posts: 1109
|
Here is what the error log reports. I went ahead and closed the boards until it's worked out. <br /> <br />Unable to do_query: SELECT t1.B_Number,t2.U_Username,t1.B_Posted,t1.B_IP,t1.B_Subject,t1.B_Body,t1.B_File,t1.B_Status,t1.B_Approved,t2.U_Picture,t1.B_Reged,t2.U_Title,t2.U_Color,t1.B_Icon,t1.B_Poll,t1.B_Parent,t2.U_Status,t2.U_Signature,t1.B_LastEdit,t1.B_LastEditBy,t2.U_Location,t2.U_TotalPosts,t2.U_Registered,t2.U_Rating,t2.U_Rates,t2.U_RealRating,t2.U_PicWidth,t2.U_PicHeight,t2.U_Number,t1.B_FileCounter,t1.B_AnonName,t1.B_ParentUser,t2.U_Birthday,t2.U_ShowBday,t1.B_AddSig,t2.U_Visible FROM w3t_Posts AS t1, w3t_Users AS t2 WHERE t1.B_Main = 16373 AND t1.B_PosterId = t2.U_Number AND B_Approved = 'yes' ORDER BY B_Number LIMIT 20 - Unknown column 't2.U_Birthday' in 'field list' <br /> <br />(sorry about the scroll)
Edited by ericgtr (11/10/03 03:56 PM)
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#262045 - 11/10/03 06:49 PM
Re: 6.4b1 Upgrade Error
[Re: Daine]
|
I type Like navaho
Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
|
OK _ just looked.<br /><br />The U_Birthday field (new one) never got created, because you have U_BirthDay from my mod.<br /><br />The other 6.4 fields are there.<br /><br />My new script should work for you - <br /><br />As it changes the old one - then goes through one by one and adds any fields that might have been missed. It'll fail on the ones that you've already got - but otherwise should be fine, because I split the queries out to add each field separately.... like this:<br /><br />// Rename the old field<br />$query = "<br /> ALTER TABLE {$config['tbprefix']}Users <br /> CHANGE U_BirthDay U_BirthDayOLD INT( 2 ) UNSIGNED DEFAULT NULL <br />"; <br />$sth = $dbh -> do_query($query);<br /><br />echo "We need to create the new birthday fields - in case the 6.4 altertable couldn't do this at the time. You might get an error here too, which is OK.<br /><br />";<br />// Add the 6.4 fields in case the query to add them failed<br />$query = "<br /> ALTER TABLE {$config['tbprefix']}Users<br /> ADD U_Birthday VARCHAR(10) NOT NULL DEFAULT '0',<br /> "; <br />$dbh -> do_query($query);<br /><br />$query = "<br /> ALTER TABLE {$config['tbprefix']}Users<br /> ADD U_ShowBday INT(1) NOT NULL DEFAULT '0',<br /> ";<br />$dbh -> do_query($query);<br /><br />$query = " <br /> ALTER TABLE {$config['tbprefix']}Users<br /> ADD U_TimeFormat VARCHAR(6),<br /> ";<br />$dbh -> do_query($query);<br /> <br />$query = "<br /> ALTER TABLE {$config['tbprefix']}Users<br /> ADD U_Ignored TEXT,<br /> ";<br />$dbh -> do_query($query);<br /> <br />$query = "<br /> ALTER TABLE {$config['tbprefix']}Users<br /> ADD U_OC_Userid VARCHAR(64),<br /> ";<br />$dbh -> do_query($query);<br /><br />$query = "<br /> ALTER TABLE {$config['tbprefix']}Users<br /> ADD INDEX birthday_ndx (U_Birthday,U_ShowBday)<br />"; <br />$dbh -> do_query($query);<br /><br /><br /><br />Give it a go and let me know. <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" />
|
|
Top
|
|
|
|
 |
 |
 |
 |
| |