🚀 Apply missing DB schema changes for qr_code and company_id
This commit is contained in:
@@ -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!"
|
||||
|
||||
Reference in New Issue
Block a user