lib/sequel/adapters/shared/mysql.rb in sequel-3.40.0 vs lib/sequel/adapters/shared/mysql.rb in sequel-3.41.0
- old
+ new
@@ -193,9 +193,10 @@
opts[:name] = o == :rename_column ? op[:new_name] : op[:name]
opts[:type] = o == :set_column_type ? op[:type] : opts[:db_type]
opts[:null] = o == :set_column_null ? op[:null] : opts[:allow_null]
opts[:default] = o == :set_column_default ? op[:default] : opts[:ruby_default]
opts.delete(:default) if opts[:default] == nil
+ opts.delete(:primary_key)
"CHANGE COLUMN #{quote_identifier(op[:name])} #{column_definition_sql(op.merge(opts))}"
when :drop_constraint
type = case op[:type]
when :primary_key
"DROP PRIMARY KEY"