Fix missing table name (#1817)

Bug from #1806 

We don't need the sync because the step_machine is there since the model
was added the first time so it mill *always* be in the table
This commit is contained in:
qwerty287 2023-06-03 20:24:37 +02:00 committed by GitHub
parent 317bd24abb
commit b9731d8da9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -18,18 +18,9 @@ import (
"xorm.io/xorm"
)
type oldStep017 struct {
ID int64 `xorm:"pk autoincr 'step_id'"`
Machine string `xorm:"step_machine"`
}
var removeMachineCol = task{
name: "remove-machine-col",
fn: func(sess *xorm.Session) error {
// make sure step_machine column exists
if err := sess.Sync(new(oldStep017)); err != nil {
return err
}
return dropTableColumns(sess, "steps", "step_machine")
},
}