summaryrefslogtreecommitdiffstats
path: root/models/gpg_key.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2017-03-17 22:24:51 +0800
committerKim "BKC" Carlbäcker <kim.carlbacker@gmail.com>2017-03-20 02:55:07 +0100
commit608cd54a685a2de0f7ba2888f36d86307bd5b310 (patch)
tree1be964618dbd19d9206955ccb4e92bb2c782a06d /models/gpg_key.go
parent430cc4f42ae0a1186de30b8eae2f1660af6fea35 (diff)
downloadgitea-608cd54a685a2de0f7ba2888f36d86307bd5b310.tar.gz
gitea-608cd54a685a2de0f7ba2888f36d86307bd5b310.zip
fix gpg wrong column types
Diffstat (limited to 'models/gpg_key.go')
-rw-r--r--models/gpg_key.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/models/gpg_key.go b/models/gpg_key.go
index 9ca9a1baf0..e7aac5162a 100644
--- a/models/gpg_key.go
+++ b/models/gpg_key.go
@@ -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