mirror of
https://git.v0id.ovh/n3wt-innov/n3wt-school.git
synced 2026-01-28 23:43:22 +00:00
feat: Mise en place du Backend-messagerie [#17]
This commit is contained in:
25
Back-End/clean_migration_dir.py
Normal file
25
Back-End/clean_migration_dir.py
Normal 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é.")
|
||||
Reference in New Issue
Block a user