Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Jun 2000
Posts: 190
Enthusiast
Enthusiast
Joined: Jun 2000
Posts: 190
Trying updating my Board and after uploading all the new files, etc., I ran the "altertable-6.4-6.4.1.php" file in my browser and got the following error:

SQL ERROR: Sun, Jan 11 2004 23:43:02 -0600 Unable to do_query: ALTER TABLE w3t_Posts DROP INDEX board_topic_ndx
Can't DROP 'board_topic_ndx'. Check that column/key existsSQL ERROR: Sun, Jan 11 2004 23:43:03 -0600 Unable to do_query: ALTER TABLE w3t_Posts ADD INDEX board_topic_index (B_Board,B_Topic,B_Last_Post)
Duplicate key name 'board_topic_index'SQL ERROR: Sun, Jan 11 2004 23:43:03 -0600 Unable to do_query: UPDATE w3t_Version SET V_Version='6.4.1'
Table 'phpthreads.w3t_Version' doesn't existDone

Okay.... now what do I do?

Jeff


Artificial Intelligence is no match for natural stupidity!
Sponsored Links
Joined: Dec 2000
Posts: 1,471
Addict
Addict
Offline
Joined: Dec 2000
Posts: 1,471
Quote from the release notes

[]Please note that there is an altertable to run in this update. This altertable removes an old index on your posts table and adds a new one. As always, make a database backup before this and any upgrade.

If the version you are upgrading from did not have this old index you will receive an error message. That is fine, the altertable script will continue to run.[/]

So the first errors about the index is ok.

The second one
[]Sun, Jan 11 2004 23:43:03 -0600 Unable to do_query: UPDATE w3t_Version SET V_Version='6.4.1'
Table 'phpthreads.w3t_Version' doesn't existDone
[/]
looks like that the update to 6.4.0 wasn't done completely. Otherwise the table w3t_Version should be present.

Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
Okay run this to fix that

CREATE TABLE `w3t_Version` (
`V_Version` varchar(25) default NULL,
`V_AlterStep` int(1) default NULL,
`V_StartTime` int(11) default NULL,
`V_StopTime` int(11) default NULL
) TYPE=MyISAM;

#
# Dumping data for table `w3t_Version`
#

INSERT INTO `w3t_Version` VALUES ('6.4.1', NULL, NULL, NULL);
INSERT INTO `w3t_Version` VALUES ('6.4.1', NULL, NULL, NULL);


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:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
JAISP
JAISP
PA
Posts: 449
Joined: February 2008
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)