fix files migration
Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space>
This commit is contained in:
parent
c9075551a8
commit
5c56dab82f
|
@ -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)
|
||||||
|
|
Reference in New Issue