execute("UPDATE #{quote_table_name(table_name)} SET #{quote_column_name(column_name)}=#{quote_default_expression(default,column)} WHERE #{quote_column_name(column_name)} IS NULL")ifcolumn
execute"UPDATE #{quote_table_name(table_name)} SET #{quote_column_name(column_name)}=#{quote_default_expression(default,column)} WHERE #{quote_column_name(column_name)} IS NULL"ifcolumn
end
execute("ALTER TABLE #{quote_table_name(table_name)} ALTER #{quote_column_name(column_name)}#{null?'DROP':'SET'} NOT NULL")
connection.execute("UPDATE #{connection.quote_table_name(table_name)} SET #{connection.quote_column_name(column_name)}=#{connection.quote_default_expression(options[:default],column)} WHERE #{connection.quote_column_name(column_name)} IS NULL")ifcolumn