mirror of
https://github.com/go-gitea/gitea.git
synced 2026-08-07 20:09:11 +00:00
ac49dbe1a2
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
21 lines
417 B
Go
21 lines
417 B
Go
// Copyright 2020 The Gitea Authors. All rights reserved.
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
package v1_14
|
|
|
|
import (
|
|
"context"
|
|
|
|
"gitea.dev/modelmigration/base"
|
|
"gitea.dev/modules/timeutil"
|
|
)
|
|
|
|
func AddSessionTable(_ context.Context, x base.EngineMigration) error {
|
|
type Session struct {
|
|
Key string `xorm:"pk CHAR(16)"`
|
|
Data []byte `xorm:"BLOB"`
|
|
Expiry timeutil.TimeStamp
|
|
}
|
|
return x.Sync(new(Session))
|
|
}
|