mirror of
https://github.com/astaxie/beego.git
synced 2025-06-10 18:40:38 +00:00
fix the issue #2998
This commit is contained in:
@ -322,7 +322,7 @@ func (m *Migration) GetSQL() (sql string) {
|
||||
sql += fmt.Sprintf("\n DROP COLUMN `%s`", column.Name)
|
||||
}
|
||||
|
||||
if len(m.Columns) > index {
|
||||
if len(m.Columns) > index+1 {
|
||||
sql += ","
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user