mirror of
https://github.com/R0m1k3/LogiFlow.git
synced 2026-10-23 23:18:18 +02:00
Provide instructions to fix missing announcement table in production
Add a new file `INSTRUCTIONS_PRODUCTION.md` detailing steps to resolve the "relation "announcements" does not exist" error in the production environment, along with a SQL script `fix_production_announcements.sql` to create the missing table. 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
This commit is contained in:
1 parent
b80af1d2d8
commit
9a5060baa5
3 files changed
+319
No files matched your search
@@ -0,0 +1,38 @@
|
||||
# Instructions pour corriger la production
|
||||
|
||||
## Problème identifié
|
||||
La table `announcements` n'existe pas dans votre base de données de production.
|
||||
|
||||
## Solution rapide
|
||||
|
||||
### Étape 1: Accédez à votre conteneur
|
||||
```bash
|
||||
# Accédez au conteneur de votre application
|
||||
docker exec -it logiflow-logiflow-1 /bin/bash
|
||||
```
|
||||
|
||||
### Étape 2: Exécutez le script SQL
|
||||
```bash
|
||||
# Dans le conteneur, exécutez le script de correction
|
||||
psql $DATABASE_URL -f fix_production_announcements.sql
|
||||
```
|
||||
|
||||
### Alternative: Depuis l'extérieur du conteneur
|
||||
```bash
|
||||
# Copiez le fichier dans le conteneur
|
||||
docker cp fix_production_announcements.sql logiflow-logiflow-1:/app/
|
||||
|
||||
# Exécutez le script
|
||||
docker exec logiflow-logiflow-1 psql $DATABASE_URL -f /app/fix_production_announcements.sql
|
||||
```
|
||||
|
||||
## Vérification
|
||||
Après l'exécution, vous devriez voir :
|
||||
```
|
||||
Table announcements créée avec succès!
|
||||
```
|
||||
|
||||
Le système d'annonces fonctionnera immédiatement après cette correction.
|
||||
|
||||
## Prévention future
|
||||
Pour éviter ce problème lors des futures mises à jour, utilisez le fichier `init.sql` pour les nouvelles installations.
|
||||
Reference in new issue
Block a user