From fa3fe1e28aad5b3363fab44dbd84c3dc97fa7947 Mon Sep 17 00:00:00 2001 From: techknowlogick Date: Wed, 14 Apr 2021 02:03:42 -0400 Subject: [PATCH] v172 migration adds created_unix field instead of expiry (#15458) (#15463) The Session table must have an Expiry field not a created_unix field - somehow this migration adds the incorrect named field leading to #15445 reports. Fix #15445 Signed-off-by: Andrew Thornton Co-authored-by: zeripath --- models/migrations/v172.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/models/migrations/v172.go b/models/migrations/v172.go index 51f83bcc9..125522a4b 100644 --- a/models/migrations/v172.go +++ b/models/migrations/v172.go @@ -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)) }