From 0acf209e2a4e62dab5f7e32661576b7321aac83e Mon Sep 17 00:00:00 2001 From: Unknwon Date: Thu, 6 Aug 2015 22:55:03 +0800 Subject: [PATCH] fix UNIQUE --- models/publickey.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/publickey.go b/models/publickey.go index 67891fbaf..70da8057c 100644 --- a/models/publickey.go +++ b/models/publickey.go @@ -90,7 +90,7 @@ type PublicKey struct { OwnerID int64 `xorm:"INDEX NOT NULL"` Name string `xorm:"NOT NULL"` Fingerprint string `xorm:"NOT NULL"` - Content string `xorm:"UNIQUE TEXT NOT NULL"` + Content string `xorm:"TEXT NOT NULL"` Mode AccessMode `xorm:"NOT NULL DEFAULT 2"` Type KeyType `xorm:"NOT NULL DEFAULT 1"` Created time.Time `xorm:"CREATED"`