@raise_if_offline
def alter_column_if_exists(table_name, column_name, **kwargs):
 if schema_has_column(table_name, column_name):
  op.alter_column(table_name, column_name, **kwargs)

@ raise_if_offline def alter_column_if_exists ( table_name , column_name , ** kwargs ) : if schema_has_column ( table_name , column_name ) : op . alter_column ( table_name , column_name , ** kwargs )
alter a column only if it exists in the schema .