Some improvements

This commit is contained in:
Lunny Xiao
2022-10-15 11:45:03 +08:00
committed by Jason Song
parent e7d5c99b42
commit b5520f098f
7 changed files with 22 additions and 23 deletions

View File

@@ -13,12 +13,12 @@ import (
func createSecretsTable(x *xorm.Engine) error {
type Secret struct {
ID int64
UserID int64 `xorm:"index"`
RepoID int64 `xorm:"index"`
Name string
Data string
PullRequest bool
CreatedUnix timeutil.TimeStamp `xorm:"created"`
UserID int64 `xorm:"index NOTNULL"`
RepoID int64 `xorm:"index NOTNULL"`
Name string `xorm:"NOTNULL"`
Data string `xorm:"TEXT"`
PullRequest bool `xorm:"NOTNULL"`
CreatedUnix timeutil.TimeStamp `xorm:"created NOTNULL"`
}
return x.Sync(new(Secret))