mirror of
https://git.v0id.ovh/n3wt-innov/n3wt-school.git
synced 2026-01-28 15:33:22 +00:00
27 lines
600 B
Python
27 lines
600 B
Python
import os
|
|
import shutil
|
|
|
|
APPS = [
|
|
"Establishment",
|
|
"Settings",
|
|
"Subscriptions",
|
|
"Planning",
|
|
"GestionNotification",
|
|
"GestionMessagerie",
|
|
"GestionEmail",
|
|
"Auth",
|
|
"School",
|
|
"Common"
|
|
]
|
|
|
|
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é.") |