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
1 changed files with 1 additions and 1 deletions

View File

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