def _upgrade_other(t_images, t_image_members, t_image_properties, dialect):
 foreign_keys = _get_foreign_keys(t_images, t_image_members, t_image_properties, dialect)
 for fk in foreign_keys:
  fk.drop()
 t_images.c.id.alter(sqlalchemy.String(36), primary_key=True)
 t_image_members.c.image_id.alter(sqlalchemy.String(36))
 t_image_properties.c.image_id.alter(sqlalchemy.String(36))
 _update_all_ids_to_uuids(t_images, t_image_members, t_image_properties)
 for fk in foreign_keys:
  fk.create()

def _upgrade_other ( t_images , t_image_members , t_image_properties , dialect ) : foreign_keys = _get_foreign_keys ( t_images , t_image_members , t_image_properties , dialect ) for fk in foreign_keys : fk . drop ( ) t_images . c . id . alter ( sqlalchemy . String ( 36 ) , primary_key = True ) t_image_members . c . image_id . alter ( sqlalchemy . String ( 36 ) ) t_image_properties . c . image_id . alter ( sqlalchemy . String ( 36 ) ) _update_all_ids_to_uuids ( t_images , t_image_members , t_image_properties ) for fk in foreign_keys : fk . create ( )
upgrade 011 -> 012 with logic for non-sqlite databases .