19 lines
570 B
Plaintext
19 lines
570 B
Plaintext
INSTRUCTIONS POUR RÉPARER LA BASE DE DONNÉES ET LES MIGRATIONS
|
|
|
|
1. SUPPRIMER LA BASE DE DONNÉES EXISTANTE
|
|
- Allez dans le dossier backend
|
|
- Supprimez le fichier chartbastan.db (s'il existe)
|
|
|
|
2. CRÉER UN FICHIER ALEMBIC DE TEST
|
|
- Créez un nouveau fichier backend/alembic/versions/current.txt
|
|
- Contenant: current: 20260117_0000
|
|
|
|
3. RÉINITIALISER LES MIGRATIONS
|
|
- Exécuter: alembic downgrade base
|
|
- Puis: alembic upgrade head
|
|
|
|
4. DÉMARRER LE SERVEUR
|
|
- uvicorn app.main:app --reload
|
|
|
|
L'authentification devrait fonctionner après ces étapes !
|