PDA

View Full Version : Removing Column In Fields


[Stryder]
06-23-2005, 06:50 PM
]Ok, what i was installing told me to do this:

Run this SQL query on your database. Don't forget to add a prefix to table's name if you use one in your config.php:

ALTER TABLE `forum` ADD `hide_hack` INT(1) DEFAULT '0' NOT NULL;


I did that than began to recieve this message when going to edit forums.

Database error in vBulletin 3.0.7:
Invalid SQL: UPDATE jelsoft_forum SET
### UPDATE QUERY GENERATED BY fetch_query_sql() ###
title = 'Site News & Announcements',
description = 'All updates and news regarding Thrash City will be posted here.',
link = '',
displayorder = '2',
daysprune = '-1',
parentid = '1',
newpostemail = '',
newthreademail = '',
styleid = '0',
password = '',
hide_hack = '0',
uttpoints_perthread = '1',
uttpoints_perreply = '1',
uttpoints_perview = '1',
options = '89799',
parentlist = '3,1,-1'
WHERE forumid=3
mysql error: Unknown column 'hide_hack' in 'field list'
mysql error number: 1054
Date: Thursday 23rd of June 2005 12:20:50 PM
Script: ********************
Referer: ***************
Username: Stryder
IP Address: **********

Now i don't know how to fix it, but need it to be fix in order to use the forum.

calorie
06-23-2005, 06:59 PM
That error says that the hide_hack column is not in the forum table, so you'd need to run that query you posted to add the hide_hack column to the forum table.

[Stryder]
06-23-2005, 07:13 PM
could you please explain that in more detail if possible, i didn't fully understand that..

calorie
06-24-2005, 01:29 AM
You said that you ran the query but the error says that you did not.

Marco van Herwaarden
06-24-2005, 06:41 AM
To get better support i suggest you post your problem in teh thread about that hack, and not in the general section.

Marco van Herwaarden
06-24-2005, 08:16 AM
Looking again at this, you should have been getting an error on that first query, unless you have installed 2 Boards into the same database, 1 using a prefix and the other not using a prefix.

You can run the following query to fix your problem:
ALTER TABLE `jelsoft_forum` ADD `hide_hack` INT(1) DEFAULT '0' NOT NULL;