diff options
author | FuXiaoHei <fuxiaohei@hexiaz.com> | 2014-04-06 14:54:39 +0800 |
---|---|---|
committer | FuXiaoHei <fuxiaohei@hexiaz.com> | 2014-04-06 14:54:39 +0800 |
commit | 98f918ed28d5a8b1c131cda587a06714a768f951 (patch) | |
tree | 04b202dfc2f639eba39304c8051bde8270b5349c /models/publickey.go | |
parent | 3ede496383bc0e5ad2cb9c5f034890bb6d626b3c (diff) | |
parent | b7c3b0cc73ad8721e2eec59d018a91850ba7f750 (diff) |
Merge branch 'dev' of https://github.com/gogits/gogs into dev
Diffstat (limited to 'models/publickey.go')
-rw-r--r-- | models/publickey.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/models/publickey.go b/models/publickey.go index 3f2fcabd..ed47ff20 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"` |