@raise_if_offline
def schema_has_column(table_name, column_name):
 bind = op.get_bind()
 insp = sa.engine.reflection.Inspector.from_engine(bind)
 if (not schema_has_table(table_name)):
  return
 return (column_name in [column['name'] for column in insp.get_columns(table_name)])

@ raise_if_offline def schema_has_column ( table_name , column_name ) : bind = op . get_bind ( ) insp = sa . engine . reflection . Inspector . from_engine ( bind ) if ( not schema_has_table ( table_name ) ) : return return ( column_name in [ column [ 'name' ] for column in insp . get_columns ( table_name ) ] )
check whether the specified column exists in the current schema .