Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Compute hashes of executable files when migrating
The 'hash' column was added in commit bc1608f (Add hash to executable files and immutable executables., 2021-03-30), but the hashes were not computed for existing files, which breaks migrations from < 8.0.0 (judging fails with error message "Fetching executable failed for compile script '<n>': Unexpected hash ..."). This commit adds the code to an existing migration (Version20230508163415, added in DOMjudge 8.3.0) because the code in that migration uses the file hashes and won't work if they haven't been computed. Users who already performed an upgrade from 7.x to 8.3.0 will need to manually re-run that migration: bin/console doctrine:migrations:execute 'DoctrineMigrations\Version20230508163415' --down bin/console doctrine:migrations:execute 'DoctrineMigrations\Version20230508163415' --up
- Loading branch information