Skip to content

Commit 0f803f7

Browse files
committed
Remove field from migration to support upgrades from older version
That will ensure the field does not get queried in the Select if it does not exist yet: ``` [I] [SQL] SELECT "id", "repo_id", "index", "poster_id", "name", "content", "milestone_id", "priority", "assignee_id", "is_closed", "is_pull", "num_comments", "ref", "deadline_unix", "created_unix", "updated_unix [...itea/routers/init.go:60 GlobalInit()] [E] Failed to initialize ORM engine: migrate: do migrate: pq: column "ref" does not exist ``` see go-gitea#5318
1 parent 7278372 commit 0f803f7

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

models/migrations/v64.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ func addMultipleAssignees(x *xorm.Engine) error {
2626
IsClosed bool `xorm:"INDEX"`
2727
IsPull bool `xorm:"INDEX"` // Indicates whether is a pull request or not.
2828
NumComments int
29-
Ref string
3029

3130
DeadlineUnix util.TimeStamp `xorm:"INDEX"`
3231
CreatedUnix util.TimeStamp `xorm:"INDEX created"`

0 commit comments

Comments
 (0)