diff --git a/scope_private.go b/scope_private.go index 85f07e99..5de1e2b7 100644 --- a/scope_private.go +++ b/scope_private.go @@ -501,7 +501,7 @@ func (scope *Scope) dropTableIfExists() *Scope { } func (scope *Scope) modifyColumn(column string, typ string) { - scope.Raw(fmt.Sprintf("ALTER TABLE %v MODIFY %v %v", scope.QuotedTableName(), scope.Quote(column), typ)).Exec() + scope.Raw(fmt.Sprintf("ALTER TABLE %v ALTER %v set data type %v", scope.QuotedTableName(), scope.Quote(column), typ)).Exec() } func (scope *Scope) dropColumn(column string) {