Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/lib/sequel_core/schema/sql.rb b/lib/sequel_core/schema/sql.rb
- index fff9d3f..a5c3170 100644
- --- a/lib/sequel_core/schema/sql.rb
- +++ b/lib/sequel_core/schema/sql.rb
- @@ -29,7 +29,7 @@ module Sequel
- when :rename_column
- "RENAME COLUMN #{quoted_name} TO #{quote_identifier(op[:new_name])}"
- when :set_column_type
- - "ALTER COLUMN #{quoted_name} TYPE #{op[:type]}"
- + "ALTER COLUMN #{quoted_name} TYPE #{type_literal(op)}"
- when :set_column_default
- "ALTER COLUMN #{quoted_name} SET DEFAULT #{literal(op[:default])}"
- when :set_column_null
- DB.alter_table(:ads){set_column_type :type, :elements=>['foo', 'bar', 'baz', 'something_else']}
Add Comment
Please, Sign In to add comment