Make column-rename RDBMS DDL MySQL compatible
This commit is contained in:
@@ -261,7 +261,7 @@ func (c *DropIndex) ToSQL() (sql string, aa []interface{}, err error) {
|
||||
|
||||
func (c *RenameColumn) ToSQL() (sql string, aa []interface{}, err error) {
|
||||
return fmt.Sprintf(
|
||||
`ALTER TABLE %s RENAME %s TO %s`,
|
||||
`ALTER TABLE %s RENAME COLUMN %s TO %s`,
|
||||
c.Dialect.QuoteIdent(c.Table),
|
||||
c.Dialect.QuoteIdent(c.Old),
|
||||
c.Dialect.QuoteIdent(c.New),
|
||||
|
||||
Reference in New Issue
Block a user