lib/lhm/migrator.rb in lhm-1.0.2 vs lib/lhm/migrator.rb in lhm-1.0.3

- old
+ new

@@ -64,11 +64,10 @@ # end # # @param [String] name Name of the column to change # @param [String] definition Valid SQL column definition def change_column(name, definition) - remove_column(name) - add_column(name, definition) + ddl("alter table `%s` modify column `%s` %s" % [@name, name, definition]) end # Remove a column from a table # # @example