Content
Error adding work package: work_+packages.fixed_version_id does not exist
Added by Rick Green 2 months ago
Still fighting some issues after the upgrade to 11.0.1 from version 7.1 with the database migration. Here is a show stopper for me. When attempting to add a work package in any project, I get this error.
OpenProject logs confirm.
Querying the work_packages table shows the column fixed___version_id does not exist.
Suggestions on how to correct this would be appreciated. I suppose I could create the field manually, but I would be making assumptions on this such as datatype (I assume bigint) and I have no idea if it has any foreign keys, etc.
Replies (5)
I just saw there was an update to 11.0.2. I applied it and reran openproject configure. There were no errors from the configure command, but it made no difference. I still get the same error when trying to create a new work package.
I did get a new failure with starting the apache2 service. It was failing because of the Includes in the /etc/apache2/sites-available/openproject.conf file (lines 1 and 9). It used a wildcard to load configuration files from those directories, but the directories were empty. I had to comment out lines 1 and 9 to get apache2 to start.
Just upgraded to 11.0.3. I reran the openproject configure again. There were no errors. I also rebooted due to a grub and kernel upgrade. Still have the same problem trying to create work packages.
Upgraded to the latest again. OpenProject said a database migration was needed, so I reran openproject configure again. It ran with no errors. Still have the same problem trying to create work packages. I am also unable to create new projects.
Just upgraded to 11.1.1. Still have the same issue with the same log entries. I am still unable to add work packages to any of the projects.
I checked out the schema on the github site and saw that the field name in the workpackages table is supposed to be called fixed_version_id and not version_id. As a test, I tried renaming the version_id column to fixed_version_id. This did not work - it just gave me an error and I was not able to see any of the existing work packages. I then just added a column to the public.workpackages table called fixed_version_id. This worked, and I am now able to create work packages. I am still unable to create new projects, though. I will be checking this to make sure there are no ill effects after adding this column, but so far it looks OK.