Quote:
Originally Posted by Boofo
Just run the query as it is and you will be allright.
|
when I run this: code below I got this error: How can I clear up this error.
Error
SQL-query :
ALTER TABLE `forum` ADD `showthanks` INT( 1 ) DEFAULT '0' NOT NULL
MySQL said:
#1060 - Duplicate column name 'showthanks'
ALTER TABLE `forum` ADD `showthanks` INT(1) DEFAULT '0' NOT NULL;
ALTER TABLE `forum` ADD `showthanks_date` INT(1) DEFAULT '0' NOT NULL;
CREATE TABLE `thanks` (
`id` INT(10) NOT NULL AUTO_INCREMENT PRIMARY KEY,
`userid` INT(10) NOT NULL,
`username` VARCHAR(50) NOT NULL,
`date` INT(10) NOT NULL,
`threadid` INT(10) NOT NULL
);