Closed (fixed)
Project:
Audio
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
12 Aug 2008 at 14:59 UTC
Updated:
28 Aug 2008 at 20:52 UTC
Jump to comment: Most recent file
Just tried to update to the latest 6.x version and I receive the following error in a red box:
user warning: Multiple primary key defined query: ALTER TABLE audio CHANGE vid `vid` INT unsigned NOT NULL DEFAULT 0, ADD PRIMARY KEY (vid) in /home/corydorn/public_html/corydorning/includes/database.mysql-common.inc on line 520.
at the bottom it says the following:
The following queries were executed
audio module
Update #6000
* Failed: ALTER TABLE {audio} CHANGE vid `vid` INT unsigned NOT NULL DEFAULT 0, ADD PRIMARY KEY (vid)
* ALTER TABLE {audio} CHANGE nid `nid` INT unsigned NOT NULL DEFAULT 0
* ALTER TABLE {audio} CHANGE file_size `file_size` INT unsigned NOT NULL DEFAULT 0
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | audio-install.patch | 1.81 KB | mfb |
| #3 | audio-install.patch | 1.57 KB | mfb |
Comments
Comment #1
yngens commentedSame problem here:
The following queries were executed
audio module
Update #6000
* Failed: ALTER TABLE {audio} CHANGE vid `vid` INT unsigned NOT NULL DEFAULT 0, ADD PRIMARY KEY (vid)
* ALTER TABLE {audio} CHANGE nid `nid` INT unsigned NOT NULL DEFAULT 0
* ALTER TABLE {audio} CHANGE file_size `file_size` INT unsigned NOT NULL DEFAULT 0
Comment #2
mfbAh neglected to call db_drop_primary_key() in the update script.
Comment #3
mfbThis patch fixes the previous update on the audio table.
It also includes an additional update, for the audio_metadata table. This one I believe I handled correctly..
Comment #4
mfbAlso we could reapply the previous failed update, for anyone who has been using these dev snapshots.
Comment #5
yngens commentedafter applying the patch in #4 and running update.php it stuck on third step (3. Run updates) forever.
1. Overview
2. Select updates
3. Run updates
4. Review log
Comment #6
mfb@yngens: interesting, I am not setting that. How many audio nodes do you have in your db? The key dropping and adding probably takes a long time on large tables.
Comment #7
yngens commentedactually, i am experimenting on a fresh install. i have only two audio files.
Comment #8
yngens commentedand i tried to update again after deleting those two files. the same result - it never passes step #3 of update process. no error in the logs.
Comment #9
yngens commentedmfb, i am sorry, but my issue was not related to your patch. just before applying the patch i happened to add to .htaccess files as the following way:
i don't know why, but that was causing update.php to loop at its step #3. after removing both rewrite rules in htaccess, update.php has run smoothly:
thank you!
Comment #10
mfbCommitted, thanks for the reports.
Comment #11
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.