Skip to content

Commit

Permalink
tt
Browse files Browse the repository at this point in the history
  • Loading branch information
as6325400 committed Oct 19, 2024
1 parent 13e4044 commit f55734c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 0 additions & 2 deletions .github/jobs/old_database.sql
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ SET time_zone = "+00:00";
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;

GRANT ALL PRIVILEGES ON domjudge.* TO 'domjudge'@'%';
FLUSH PRIVILEGES;

--
-- 資料庫: `domjudge`
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/database-upgrade.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ jobs:
apt-get update
apt-get install -y default-mysql-client
while ! mysqladmin ping -h"sqlserver" -u"domjudge" -p"domjudge" --silent; do
while ! mysqladmin ping -h"sqlserver" -u"domjudge" -p"root" --silent; do
echo "Waiting for database connection..."
sleep 2
done
mysql -hsqlserver -u"domjudge" -p"domjudge" < .github/jobs/old_database.sql
mysql -hsqlserver -u"domjudge" -p"root" < .github/jobs/old_database.sql
- name: Install DOMjudge
run: .github/jobs/baseinstall.sh
Expand All @@ -52,4 +52,4 @@ jobs:
- name: Check for Errors in the Upgrade
run: |
mysql -hsqlserver -u"domjudge" -p"domjudge" -e "SHOW TABLES FROM domjudge;"
mysql -hsqlserver -u"domjudge" -p"root" -e "SHOW TABLES FROM domjudge;"

0 comments on commit f55734c

Please sign in to comment.