Skip to content

Commit 68438a6

Browse files
as6325400vmcj
authored andcommitted
Update CI to check old db upgrade
In this dump: 1. Created a user 2. Created a team 3. Uploaded problems with admin privileges 4. Created a new contest 5. Imported problems into the new contest 6. Submitted code with the team in all contests, with both AC and WA results 7. Rejudged previous submissions from the backend 8. Changed the code from the backend and uploaded it again 9. Sent a clarification from the team 10. Responded to the clarification from the admin 11. Changed the default configuration of lazy_eval
1 parent f6b66cf commit 68438a6

File tree

4 files changed

+1905
-7
lines changed

4 files changed

+1905
-7
lines changed

.github/jobs/baseinstall.sh

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,15 @@ mysql_user "SELECT CURRENT_USER();"
5858
mysql_user "SELECT USER();"
5959
section_end
6060

61-
section_start "Install DOMjudge database"
62-
/opt/domjudge/domserver/bin/dj_setup_database -uroot -proot bare-install
63-
section_end
61+
if [ "${db}" = "install" ]; then
62+
section_start "Install DOMjudge database"
63+
/opt/domjudge/domserver/bin/dj_setup_database -uroot -proot bare-install
64+
section_end
65+
elif [ "${db}" = "upgrade" ]; then
66+
section_start "Upgrade DOMjudge database"
67+
/opt/domjudge/domserver/bin/dj_setup_database -uroot -proot upgrade
68+
section_end
69+
fi
6470

6571
section_start "Show PHP config"
6672
php -v | tee -a "$ARTIFACTS"/php.txt

0 commit comments

Comments
 (0)