mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-02-21 13:46:18 +00:00
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:
parent
317bd24abb
commit
b9731d8da9
1 changed files with 0 additions and 9 deletions
|
@ -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")
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue