def _fix_pk(apps, schema_editor):
    """ Set the primary_key to be a series """
    DBFile = apps.get_model('dbfilestorage', 'DBFile')
    for idx, dbf in enumerate(DBFile.objects.all()):
        dbf.primary_key = idx + 1
        dbf.save()
