fix images

This commit is contained in:
Stefan Hardegger
2025-10-20 12:30:28 +02:00
parent c9d58173f3
commit 6a38189ef0
4 changed files with 106 additions and 3 deletions

View File

@@ -55,6 +55,25 @@ if [ $RETRY_COUNT -eq $MAX_RETRIES ]; then
exit 1
fi
# Apply database migrations
echo -e "${YELLOW}🗄️ Applying database migrations...${NC}"
if [ -f "backend/create_backup_jobs_table.sql" ]; then
echo "Applying backup_jobs table migration..."
# Get list of databases
DATABASES=$(docker-compose exec -T postgres psql -U storycove -lqt | cut -d \| -f 1 | grep -E '^ storycove' | sed 's/^[ \t]*//')
# Apply migration to each database
for DB_NAME in $DATABASES; do
echo " - Applying to database: $DB_NAME"
docker-compose exec -T postgres psql -U storycove -d "$DB_NAME" < backend/create_backup_jobs_table.sql 2>&1 | grep -E "(CREATE|ERROR)" || true
done
echo -e "${GREEN}✅ Database migrations applied${NC}"
else
echo -e "${YELLOW}⚠️ No migration files found, skipping...${NC}"
fi
# Check if Solr is ready
echo -e "${YELLOW}🔍 Checking Solr health...${NC}"
RETRY_COUNT=0