Skip to content

Commit fa3fe1e

Browse files
v172 migration adds created_unix field instead of expiry (go-gitea#15458) (go-gitea#15463)
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]> Co-authored-by: zeripath <[email protected]>
1 parent 62f5cf4 commit fa3fe1e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

models/migrations/v172.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ import (
1212

1313
func addSessionTable(x *xorm.Engine) error {
1414
type Session struct {
15-
Key string `xorm:"pk CHAR(16)"`
16-
Data []byte `xorm:"BLOB"`
17-
CreatedUnix timeutil.TimeStamp
15+
Key string `xorm:"pk CHAR(16)"`
16+
Data []byte `xorm:"BLOB"`
17+
Expiry timeutil.TimeStamp
1818
}
1919
return x.Sync2(new(Session))
2020
}

0 commit comments

Comments
 (0)