summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorUnknwon <joe2010xtmf@163.com>2014-11-17 16:25:39 -0500
committerUnknwon <joe2010xtmf@163.com>2014-11-17 16:25:39 -0500
commit5d9ef2bb12d2dee4c3b27429184a81004ac2fe87 (patch)
tree1f59426c9e6289bf94d3e37c2b717842d9b9e374 /models
parentd21d7171b06eda64c0475431a39438c70047f9cf (diff)
downloadgitea-5d9ef2bb12d2dee4c3b27429184a81004ac2fe87.tar.gz
gitea-5d9ef2bb12d2dee4c3b27429184a81004ac2fe87.zip
lock gopmfile
Diffstat (limited to 'models')
-rw-r--r--models/publickey.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/publickey.go b/models/publickey.go
index f379e12188..5a488c2af6 100644
--- a/models/publickey.go
+++ b/models/publickey.go
@@ -81,7 +81,7 @@ type PublicKey struct {
Id int64
OwnerId int64 `xorm:"UNIQUE(s) INDEX NOT NULL"`
Name string `xorm:"UNIQUE(s) NOT NULL"`
- Fingerprint string `xorm:"INDEX NOT NULL"`
+ Fingerprint string `xorm:"UNIQUE NOT NULL"`
Content string `xorm:"TEXT NOT NULL"`
Created time.Time `xorm:"CREATED"`
Updated time.Time