mirror of
https://github.com/R0m1k3/LogiFlow.git
synced 2026-10-11 17:27:31 +02:00
Updates SQL scripts and a bash script to correctly create the `announcements` table in production, resolving a "relation does not exist" error. Replit-Commit-Author: Agent Replit-Commit-Session-Id: e437ffed-c31b-44eb-9fd5-b6f9faa8e7ce Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/e437ffed-c31b-44eb-9fd5-b6f9faa8e7ce/biGr9ER
19 lines
793 B
Bash
Executable File
19 lines
793 B
Bash
Executable File
#!/bin/bash
|
|
# Script d'urgence pour corriger la production immédiatement
|
|
|
|
echo "🚨 CORRECTION URGENTE - Création de la table announcements"
|
|
|
|
# Option 1: Copier le fichier SQL dans le conteneur et l'exécuter
|
|
echo "📋 Copie du script SQL dans le conteneur..."
|
|
docker cp create_announcements_production.sql logiflow-logiflow-1:/tmp/
|
|
|
|
echo "🔧 Exécution du script SQL..."
|
|
docker exec logiflow-logiflow-1 psql $DATABASE_URL -f /tmp/create_announcements_production.sql
|
|
|
|
echo "✅ Script exécuté. Vérification..."
|
|
docker exec logiflow-logiflow-1 psql $DATABASE_URL -c "SELECT EXISTS (SELECT FROM information_schema.tables WHERE table_name='announcements') as table_exists;"
|
|
|
|
echo "🎯 Redémarrage de l'application..."
|
|
docker restart logiflow-logiflow-1
|
|
|
|
echo "✅ CORRECTION TERMINÉE" |