Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
OK _ just looked.

The U_Birthday field (new one) never got created, because you have U_BirthDay from my mod.

The other 6.4 fields are there.

My new script should work for you -

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:

// Rename the old field
$query = "
ALTER TABLE {$config['tbprefix']}Users
CHANGE U_BirthDay U_BirthDayOLD INT( 2 ) UNSIGNED DEFAULT NULL
";
$sth = $dbh -> do_query($query);

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 />";
// Add the 6.4 fields in case the query to add them failed
$query = "
ALTER TABLE {$config['tbprefix']}Users
ADD U_Birthday VARCHAR(10) NOT NULL DEFAULT '0',
";
$dbh -> do_query($query);

$query = "
ALTER TABLE {$config['tbprefix']}Users
ADD U_ShowBday INT(1) NOT NULL DEFAULT '0',
";
$dbh -> do_query($query);

$query = "
ALTER TABLE {$config['tbprefix']}Users
ADD U_TimeFormat VARCHAR(6),
";
$dbh -> do_query($query);

$query = "
ALTER TABLE {$config['tbprefix']}Users
ADD U_Ignored TEXT,
";
$dbh -> do_query($query);

$query = "
ALTER TABLE {$config['tbprefix']}Users
ADD U_OC_Userid VARCHAR(64),
";
$dbh -> do_query($query);

$query = "
ALTER TABLE {$config['tbprefix']}Users
ADD INDEX birthday_ndx (U_Birthday,U_ShowBday)
";
$dbh -> do_query($query);



Give it a go and let me know.

Sponsored Links
Entire Thread
Subject Posted By Posted
6.4b1 Upgrade Error ericgtr 11/04/2003 6:36 PM
Re: 6.4b1 Upgrade Error omegatron 11/04/2003 6:46 PM
Re: 6.4b1 Upgrade Error ericgtr 11/04/2003 6:58 PM
Re: 6.4b1 Upgrade Error ericgtr 11/04/2003 7:00 PM
Re: 6.4b1 Upgrade Error omegatron 11/04/2003 7:03 PM
Re: 6.4b1 Upgrade Error ericgtr 11/10/2003 9:24 PM
Re: 6.4b1 Upgrade Error omegatron 11/10/2003 10:06 PM
Re: 6.4b1 Upgrade Error JoshPet 11/10/2003 10:19 PM
Re: 6.4b1 Upgrade Error ericgtr 11/10/2003 10:24 PM
Re: 6.4b1 Upgrade Error JoshPet 11/10/2003 11:02 PM
Re: 6.4b1 Upgrade Error ericgtr 11/10/2003 11:17 PM
Re: 6.4b1 Upgrade Error ericgtr 11/10/2003 11:55 PM
Re: 6.4b1 Upgrade Error ericgtr 11/11/2003 12:54 AM
Re: 6.4b1 Upgrade Error omegatron 11/11/2003 1:12 AM
Re: 6.4b1 Upgrade Error ericgtr 11/11/2003 1:19 AM
Re: 6.4b1 Upgrade Error omegatron 11/11/2003 2:16 AM
Re: 6.4b1 Upgrade Error JoshPet 11/11/2003 2:17 AM
Re: 6.4b1 Upgrade Error omegatron 11/11/2003 2:32 AM
Re: 6.4b1 Upgrade Error JoshPet 11/11/2003 2:35 AM
Re: 6.4b1 Upgrade Error JoshPet 11/11/2003 2:37 AM
Re: 6.4b1 Upgrade Error ericgtr 11/11/2003 2:38 AM
Re: 6.4b1 Upgrade Error JoshPet 11/11/2003 2:40 AM
Re: 6.4b1 Upgrade Error ericgtr 11/11/2003 2:41 AM
Re: 6.4b1 Upgrade Error JoshPet 11/11/2003 2:45 AM
Re: 6.4b1 Upgrade Error ericgtr 11/11/2003 2:46 AM
Re: 6.4b1 Upgrade Error JoshPet 11/11/2003 2:49 AM
Re: 6.4b1 Upgrade Error ericgtr 11/11/2003 2:57 AM
Re: 6.4b1 Upgrade Error JoshPet 11/11/2003 3:16 AM
Re: 6.4b1 Upgrade Error omegatron 11/11/2003 3:18 AM
Re: 6.4b1 Upgrade Error ericgtr 11/11/2003 3:24 AM
Re: 6.4b1 Upgrade Error JoshPet 11/11/2003 3:26 AM
Re: 6.4b1 Upgrade Error omegatron 11/11/2003 3:29 AM
Re: 6.4b1 Upgrade Error ericgtr 11/11/2003 3:29 AM
Re: 6.4b1 Upgrade Error omegatron 11/11/2003 3:54 AM
Re: 6.4b1 Upgrade Error JoshPet 11/11/2003 4:19 AM
Re: 6.4b1 Upgrade Error omegatron 11/11/2003 4:36 AM
Re: 6.4b1 Upgrade Error JoshPet 11/11/2003 4:46 AM
Re: 6.4b1 Upgrade Error omegatron 11/11/2003 5:08 AM
Re: 6.4b1 Upgrade Error JoshPet 11/11/2003 5:19 AM

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
• Shock Hosting
• Stable Host
• bluehost
• InterServer
Visit us on Facebook
Member Spotlight
Ruben Rocha
Ruben Rocha
Lutz,FL,USA
Posts: 253
Joined: January 2000
Forum Statistics
Forums63
Topics37,583
Posts293,955
Members13,826
Most Online151,614
Nov 14th, 2025
Today's Statistics
Currently Online 1587
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 22
Top Posters
AllenAyres 21,080
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2026 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260108)