Kunena 7.0.4 Released

The Kunena team has announce the arrival of Kunena 7.0.4 [K 7.0.4] in stable which is now available for download as a native Joomla extension for J! 5.4.x/6.0.x. This version addresses most of the issues that were discovered in K 6.2 / K 6.3 / K 6.4 and issues discovered during the last development stages of K 7.0

Question 0 post counts 1.5.8

More
16 years 3 months ago #38304 by rawkey
Replied by rawkey on topic Re:0 post counts 1.5.8
So for example, I need to run,

ALTER TABLE `jos_fb_announcement` DROP INDEX ( `id` ) ;

Is that right ?

Thanks

Please Log in or Create an account to join the conversation.

More
16 years 3 months ago #38305 by sozzled
Replied by sozzled on topic Re:0 post counts 1.5.8
I'm sorry, I should have explained this better.

If you want to delete the INDEX you use this syntax:
Code:
ALTER TABLE table_name DROP INDEX index_name
If you want to delete the PRIMARY KEY you use this syntax:
Code:
ALTER TABLE table_name DROP PRIMARY KEY
As we've said on many occasions, you need to be extraordinarily careful because the slightest mistake and *pow* there goes the whole ball-game. It pays to really know what you're doing and, if you're unsure, do lots of reading up on the subject in Google.

Please Log in or Create an account to join the conversation.

More
16 years 3 months ago #38306 by rawkey
Replied by rawkey on topic Re:0 post counts 1.5.8
ok thanks for the help will have a go and see how I get on, don't fear I have backed up! :)

Thanks!

Please Log in or Create an account to join the conversation.

More
16 years 3 months ago #38737 by rawkey
Replied by rawkey on topic Re:0 post counts 1.5.8
Hi,

When I run

ALTER TABLE `jos_fb_announcement` DROP PRIMARY KEY (`id`);

I get an error, is the above correct ?

The error is,

#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(`id`)' at line 1

SQL is version 5.0.58

Appreciate the help as I really need to get my site back up and running !

Thanks :)

Please Log in or Create an account to join the conversation.

More
16 years 3 months ago #38738 by sozzled
Replied by sozzled on topic Re:0 post counts 1.5.8
The correct syntax is
Code:
ALTER TABLE `jos_fb_announcement` DROP PRIMARY KEY;

Please Log in or Create an account to join the conversation.

More
16 years 3 months ago #38739 by rawkey
Replied by rawkey on topic Re:0 post counts 1.5.8
Hi,

I ran that and get,

#1075 - Incorrect table definition; there can be only one auto column and it must be defined as a key

Thanks.

Please Log in or Create an account to join the conversation.

Time to create page: 0.222 seconds