fix files migration

Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space>
This commit is contained in:
Marc 'risson' Schmitt 2023-12-04 10:21:28 +01:00
parent c9075551a8
commit 5c56dab82f
No known key found for this signature in database
GPG key ID: 9C3FA22FABF1AA8D

View file

@ -12,7 +12,7 @@ class Migration(BaseMigration):
return not TENANT_MEDIA_ROOT.exists()
def run(self):
TENANT_MEDIA_ROOT.mkdir()
TENANT_MEDIA_ROOT.mkdir(parents=True)
for d in ("application-icons", "source-icons", "flow-backgrounds"):
if (MEDIA_ROOT / d).exists():
(MEDIA_ROOT / d).rename(TENANT_MEDIA_ROOT / d)