1
0
mirror of https://github.com/astaxie/beego.git synced 2024-12-29 07:15:46 +00:00

fix the issue #2998

This commit is contained in:
smori 2017-12-23 16:41:56 +09:00
parent 122414d789
commit 24fa6189b5

View File

@ -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 += ","
}
}