diff options
author | Unknwon <u@gogs.io> | 2015-08-06 22:55:03 +0800 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-08-06 22:55:03 +0800 |
commit | 0acf209e2a4e62dab5f7e32661576b7321aac83e (patch) | |
tree | 4ea67e2ab2dd50aa3f67c98f8f9f8be305465fa5 | |
parent | 39a3b768bc8b0288cb4aa91d27485f46cfbfeb29 (diff) | |
download | gitea-0acf209e2a4e62dab5f7e32661576b7321aac83e.tar.gz gitea-0acf209e2a4e62dab5f7e32661576b7321aac83e.zip |
fix UNIQUE
-rw-r--r-- | models/publickey.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/publickey.go b/models/publickey.go index 67891fbaf7..70da8057ce 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"` |