stable

Clone or download

Read-only

fix: Do nothing in add_project_file_upload_table bucket

Fixes request #37555 Unexpected ordering of forge upgrade buckets part of story #36484 create a new project from an XML template How to test: - forge your database to mark b202402131221_add_project_file_upload_table and b2024003071430_add_project_to_project_file_upload_table as not run - $ make dev-forgeupgrade - You should not have an SQL error stating that Table 'project_file_upload' already exists. Notes: b2024003071430_add_project_to_project_file_upload_table has a typo in its datetime naming b202400, so it applies first before b202402131221_add_project_file_upload_table. Since this order was not expected, the b202402 bucket does not expect the table to already exist and fails. Since we mark forge upgrade buckets that have already been run based on their name, we do not try renaming the bucket. Instead, the "older" bucket now does nothing, since the b202400 created the table with the correct columns. Change-Id: I766a5793818d99afc8c5c3b47bc3f4bfa23a2e9d

Modified Files

Name
M src/db/mysql/updates/2024/202402131221_add_project_file_upload_table.php +2 −13 Go to diff View file