mirror of
https://github.com/astaxie/beego.git
synced 2024-11-29 19:01:29 +00:00
fix the issue #2998
This commit is contained in:
parent
122414d789
commit
24fa6189b5
@ -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 += ","
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user