🚀 Apply missing DB schema changes for qr_code and company_id

This commit is contained in:
Hamza-Ayed
2026-04-22 01:37:53 +03:00
parent 4cfa65364e
commit 31022da057
2 changed files with 49 additions and 3 deletions

View File

@@ -61,9 +61,13 @@ ssh $SERVER_USER@$SERVER_IP << EOF
\$DOCKER_CMD down --remove-orphans || true
echo "🏗️ Rebuilding and starting production containers using \$DOCKER_CMD..."
\$DOCKER_CMD up -d --build
echo "🗄️ Running database migrations..."
\$DOCKER_CMD build
\$DOCKER_CMD up -d
echo "🗄️ Applying manual database schema fixes..."
bash db-fix.sh
echo "🗄️ Running TypeORM migrations (if any)..."
\$DOCKER_CMD exec -T api npm run migration:run:prod
else
echo "❌ Error: docker-compose.yml not found!"