fix gpg wrong column types

This commit is contained in:
Lunny Xiao
2017-03-17 22:24:51 +08:00
committed by Kim "BKC" Carlbäcker
parent 430cc4f42a
commit 608cd54a68
3 changed files with 54 additions and 2 deletions

View File

@ -20,8 +20,8 @@ import (
type GPGKey struct {
ID int64 `xorm:"pk autoincr"`
OwnerID int64 `xorm:"INDEX NOT NULL"`
KeyID string `xorm:"INDEX TEXT NOT NULL"`
PrimaryKeyID string `xorm:"TEXT"`
KeyID string `xorm:"INDEX CHAR(16) NOT NULL"`
PrimaryKeyID string `xorm:"CHAR(16)"`
Content string `xorm:"TEXT NOT NULL"`
Created time.Time `xorm:"-"`
CreatedUnix int64