diff options
author | zeripath <art27@cantab.net> | 2021-04-14 01:04:17 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-13 20:04:17 -0400 |
commit | cd79fbf94a7abc540cdcc1dd61cbf227633f41fc (patch) | |
tree | e60b4e184cf1e5a013697e0a08467688ee33f0ae /models | |
parent | 66f0fd0959b293c01a7685e9d7858db1da4416da (diff) | |
download | gitea-cd79fbf94a7abc540cdcc1dd61cbf227633f41fc.tar.gz gitea-cd79fbf94a7abc540cdcc1dd61cbf227633f41fc.zip |
v172 migration adds created_unix field instead of expiry (#15458)
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 <art27@cantab.net>
Diffstat (limited to 'models')
-rw-r--r-- | models/migrations/v172.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/models/migrations/v172.go b/models/migrations/v172.go index 51f83bcc91..125522a4b8 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)) } |