Skip to content

Commit

Permalink
v172 migration adds created_unix field instead of expiry (go-gitea#15458
Browse files Browse the repository at this point in the history
)

The Session table must have an Expiry field not a created_unix field - somehow
this migration adds the incorrect named field leading to go-gitea#15445 reports.

Fix go-gitea#15445

Signed-off-by: Andrew Thornton <[email protected]>
  • Loading branch information
zeripath authored and techknowlogick committed Apr 14, 2021
1 parent 62f5cf4 commit 1352d34
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions models/migrations/v172.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ import (

func addSessionTable(x *xorm.Engine) error {
type Session struct {
Key string `xorm:"pk CHAR(16)"`
Data []byte `xorm:"BLOB"`
CreatedUnix timeutil.TimeStamp
Key string `xorm:"pk CHAR(16)"`
Data []byte `xorm:"BLOB"`
Expiry timeutil.TimeStamp
}
return x.Sync2(new(Session))
}

0 comments on commit 1352d34

Please sign in to comment.