New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update Error: PDOStatement: Can't DROP 'issue_backlog_user_id'; check that column/key exists #282
Comments
That key was introduced when the If your DROP TABLE `issue_backlog`;
CREATE TABLE `issue_backlog` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`sprint_id` int(10) unsigned DEFAULT NULL,
`issues` blob NOT NULL,
PRIMARY KEY (`id`),
KEY `issue_backlog_sprint_id` (`sprint_id`),
CONSTRAINT `issue_backlog_sprint_id` FOREIGN KEY (`sprint_id`) REFERENCES `sprint` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
Thank you for your quick reply. Unfortunately, I couldn't resolve the issue. Since my So I restored my old database and tried to manually run the queries from This gave me the following output: # Merge group- and type-based backlog into single per-sprint lists
SET SESSION group_concat_max_len = 8192;# MySQL lieferte ein leeres Resultat zurück (d.h. null Datensätze).
CREATE TEMPORARY TABLE issue_backlog_converting
SELECT sprint_id, REPLACE(GROUP_CONCAT(issues), '],[', ',')
FROM issue_backlog
GROUP BY sprint_id;# MySQL lieferte ein leeres Resultat zurück (d.h. null Datensätze).
TRUNCATE issue_backlog;# MySQL lieferte ein leeres Resultat zurück (d.h. null Datensätze).
ALTER TABLE issue_backlog
DROP COLUMN user_id,
DROP COLUMN type_id,
DROP INDEX issue_backlog_type_id,
DROP FOREIGN KEY issue_backlog_type_id;# MySQL lieferte ein leeres Resultat zurück (d.h. null Datensätze).
INSERT INTO issue_backlog (sprint_id, issues)
SELECT * FROM issue_backlog_converting;# MySQL lieferte ein leeres Resultat zurück (d.h. null Datensätze).
DROP TEMPORARY TABLE issue_backlog_converting;# MySQL lieferte ein leeres Resultat zurück (d.h. null Datensätze).
UPDATE `config` SET `value` = '16.11.25' WHERE `attribute` = 'version';# 1 Datensatz betroffen.
After that the login page loads properly but upon sending my credentials I get: Sorry for the long post. I hope you have another idea. |
I'm not sure why the SUPER privilege would be required for any of those queries... I'm thinking either the With the SET foreign_key_checks = 0;
DROP TABLE `issue_backlog`;
CREATE TABLE `issue_backlog` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`sprint_id` int(10) unsigned DEFAULT NULL,
`issues` blob NOT NULL,
PRIMARY KEY (`id`),
KEY `issue_backlog_sprint_id` (`sprint_id`),
CONSTRAINT `issue_backlog_sprint_id` FOREIGN KEY (`sprint_id`) REFERENCES `sprint` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
UPDATE `config` SET `value` = '16.11.25' WHERE `attribute` = 'version'; I'll try running this upgrade under a few different setups to see if I can figure out the cause. |
OK, I ran your code after restoring the DB to the original (meaning first problematic) version and running the statements that got me to Going back to the initial problem: I don't get why the Could I not just add the missing column to the table manually so the update skript "sees" it? |
Update: I found an older version which was (clean) installed on a test server on the same host on September 7th, 2016 and has just a few projects and issues. Updated to 1.4.1 - no problems. Updated to 1.5.0 - no problems. None of the versions had/have a I will look into how things behave after a downgrade tomorrow. |
It looks like the I definitely recommend keeping a full backup before each upgrade. I'm also planning to make the upgrade process more stable so it won't run automatically, and so it will install all available upgrades in a single request instead of one per pageload, which could fix some issues like this. |
OK, after numerous attempts at fixing my problem I have to give up and do a clean install. Thank you for your continued support on this one, though. Maybe, once my SQL skills improve I will give it another shot (talking about months rather than weeks). |
Hi,
I know this is probably a probelem on my end but maybe someone could help me with that? After trying to update to the newest version I get the following message:
Trying to revert to the previously installed version resulted in the same message. My phpMyAdmin shows the following:
I guess I did something wrong although the update process of "download->extract->overwrite" has always worked in the past. I was thinking if an open connection/session during the update could have caused this but that's just a wild guess.
I am thankfull for any hints.
The text was updated successfully, but these errors were encountered: