summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2014-04-04 17:27:02 +0800
committerLunny Xiao <xiaolunwen@gmail.com>2014-04-04 17:27:02 +0800
commite0d64d31680763f5b32599617771e422c0fde5fb (patch)
tree45a4cfc23129985680088e9ee34941012c56cc09
parent6b9f7fd75883ebf9b38db87b9c22985f24fe4a54 (diff)
parentb9a7dd72f84213836edc242c3a2ccc482a970ee5 (diff)
downloadgitea-e0d64d31680763f5b32599617771e422c0fde5fb.tar.gz
gitea-e0d64d31680763f5b32599617771e422c0fde5fb.zip
Merge branch 'master' of github.com:gogits/gogs
-rw-r--r--models/publickey.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/models/publickey.go b/models/publickey.go
index 3f2fcabd3b..ed47ff209d 100644
--- a/models/publickey.go
+++ b/models/publickey.go
@@ -77,8 +77,8 @@ func init() {
// PublicKey represents a SSH key of user.
type PublicKey struct {
Id int64
- OwnerId int64 `xorm:"index"`
- Name string `xorm:"unique not null"`
+ OwnerId int64 `xorm:"unique(s) index not null"`
+ Name string `xorm:"unique(s) not null"`
Fingerprint string
Content string `xorm:"TEXT not null"`
Created time.Time `xorm:"created"`