fix: add prisma_migrations table query to debug output
All checks were successful
Deploy Website / build-and-deploy (push) Successful in 22s

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
WangDL 2026-05-18 15:11:40 +08:00
parent efd690c530
commit dc19b24848

View File

@ -162,6 +162,10 @@ jobs:
{ {
echo "=== Deploy $(date) ===" echo "=== Deploy $(date) ==="
echo "" echo ""
echo "=== _prisma_migrations ==="
MYSQL_PASS=$(docker exec mysql-zhixi printenv MYSQL_PASSWORD 2>/dev/null || echo "Zhixi@2026!App")
docker exec mysql-zhixi mysql -u zhixi_user -p"$MYSQL_PASS" zhixi -e "SELECT migration_name, applied_steps_count, rolled_back_at, SUBSTRING(logs, 1, 200) as logs_preview FROM _prisma_migrations ORDER BY started_at DESC LIMIT 5;" 2>&1 || echo "(could not query)"
echo ""
echo "=== docker ps -a ===" echo "=== docker ps -a ==="
docker ps -a --format 'table {{.Names}}\t{{.Image}}\t{{.Status}}\t{{.Ports}}' 2>&1 docker ps -a --format 'table {{.Names}}\t{{.Image}}\t{{.Status}}\t{{.Ports}}' 2>&1
echo "" echo ""