Browse Source

fix UNIQUE

Unknwon 9 years ago
parent
commit
0acf209e2a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      models/publickey.go

+ 1 - 1
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"`