One of the forge upgrade buckets for the project_file_upload
, named b2024003071430_add_project_to_project_file_upload_table
, has a typo in its datetime naming b202400
, which is taken into account by the upgrade system. It is ordered at the very beginning and applies first. However, another forge upgrade bucket named b202402131221_add_project_file_upload_table
does not expect the table to exist and fails.
Since we mark forge upgrade buckets that have already been run (to avoid running them more than once) based on their name, we should probably not rename the first bucket. Instead, we will change b202402131221_add_project_file_upload_table
so that it "does nothing", because the table is already created with the correct columns by b2024003071430_add_project_to_project_file_upload_table
.
This should solve issues at Tuleap upgrades like the following:
[error] SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'project_file_upload' already exists