From b9731d8da9ba92862f14a4ad5976d180091ad5d4 Mon Sep 17 00:00:00 2001 From: qwerty287 <80460567+qwerty287@users.noreply.github.com> Date: Sat, 3 Jun 2023 20:24:37 +0200 Subject: [PATCH] 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 --- .../store/datastore/migration/017_remove_machine_col.go | 9 --------- 1 file changed, 9 deletions(-) diff --git a/server/store/datastore/migration/017_remove_machine_col.go b/server/store/datastore/migration/017_remove_machine_col.go index cf5285072..2e0b963e8 100644 --- a/server/store/datastore/migration/017_remove_machine_col.go +++ b/server/store/datastore/migration/017_remove_machine_col.go @@ -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") }, }