diff --git a/pandora/archive/migrations/0005_data_folders.py b/pandora/archive/migrations/0005_data_folders.py index 9da4f46a..40887273 100644 --- a/pandora/archive/migrations/0005_data_folders.py +++ b/pandora/archive/migrations/0005_data_folders.py @@ -12,6 +12,9 @@ class Migration(DataMigration): for s in orm['archive.Stream'].objects.all(): s.video.name = s.video.name.replace('files/', 'media/') s.save() + for f in orm['archive.File'].objects.exclude(data=''): + f.data.name = f.data.name.replace('files/', 'media/') + f.save() def backwards(self, orm): "Write your backwards methods here."