feat: Mise en place du Backend-messagerie [#17]

This commit is contained in:
Luc SORIGNET
2025-05-17 11:35:57 +02:00
parent fc9a1ed252
commit c6bc0d0b51
9 changed files with 291 additions and 188 deletions

View File

@ -0,0 +1,25 @@
import os
import shutil
APPS = [
"Establishment",
"Settings",
"Subscriptions",
"Planning",
"GestionNotification",
"GestionMessagerie",
"Auth",
"School",
]
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
for app in APPS:
migrations_path = os.path.join(BASE_DIR, app, "migrations")
if os.path.isdir(migrations_path):
print(f"Suppression du dossier : {migrations_path}")
shutil.rmtree(migrations_path)
else:
print(f"Aucun dossier de migration trouvé pour {app}")
print("Nettoyage terminé.")