def fix_iteration_tables():
 cursor = connection.cursor()
 cursor.execute('DROP TABLE tko_iteration_attributes')
 cursor.execute(_CREATE_ITERATION_ATTRIBUTES)
 cursor.execute('DROP TABLE tko_iteration_result')
 cursor.execute(_CREATE_ITERATION_RESULTS)

def fix_iteration_tables ( ) : cursor = connection . cursor ( ) cursor . execute ( 'DROP TABLE tko_iteration_attributes' ) cursor . execute ( _CREATE_ITERATION_ATTRIBUTES ) cursor . execute ( 'DROP TABLE tko_iteration_result' ) cursor . execute ( _CREATE_ITERATION_RESULTS )
since iteration tables dont have any real primary key .