fixed the empty resource migration issue
@@ -72,7 +72,7 @@ class Command(BaseCommand):
print('fed_resource_file field does not contain absolute federation '
'path which is an exception but can work after migration. '
'file_path is {}'.format(file_path))
- if path_migrated:
+ if path_migrated or resource.files.count() == 0:
# update resource federation path to point resource to data zone
resource.resource_federation_path = ''
resource.save()
