Skip to content

Commit

Permalink
Update CI to check old db upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
as6325400 committed Oct 21, 2024
1 parent f74e227 commit c1a6362
Show file tree
Hide file tree
Showing 4 changed files with 1,840 additions and 56 deletions.
12 changes: 9 additions & 3 deletions .github/jobs/baseinstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,15 @@ mysql_user "SELECT CURRENT_USER();"
mysql_user "SELECT USER();"
section_end

section_start "Install DOMjudge database"
/opt/domjudge/domserver/bin/dj_setup_database -uroot -proot bare-install
section_end
if [ "${db}" = "install" ]; then
section_start "Install DOMjudge database"
/opt/domjudge/domserver/bin/dj_setup_database -uroot -proot bare-install
section_end
elif [ "${db}" = "upgrade" ]; then
section_start "Upgrade DOMjudge database"
/opt/domjudge/domserver/bin/dj_setup_database -uroot -proot upgrade
section_end
fi

section_start "Show PHP config"
php -v | tee -a "$ARTIFACTS"/php.txt
Expand Down
Loading

0 comments on commit c1a6362

Please sign in to comment.