浏览代码

Increase api_key.key varchar to 255 length

Torkel Ödegaard 10 年之前
父节点
当前提交
eb8b9c4ac3
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      pkg/services/sqlstore/migrations/apikey_mig.go

+ 1 - 1
pkg/services/sqlstore/migrations/apikey_mig.go

@@ -42,7 +42,7 @@ func addApiKeyMigrations(mg *Migrator) {
 			{Name: "id", Type: DB_BigInt, IsPrimaryKey: true, IsAutoIncrement: true},
 			{Name: "org_id", Type: DB_BigInt, Nullable: false},
 			{Name: "name", Type: DB_NVarchar, Length: 255, Nullable: false},
-			{Name: "key", Type: DB_Varchar, Length: 64, Nullable: false},
+			{Name: "key", Type: DB_Varchar, Length: 255, Nullable: false},
 			{Name: "role", Type: DB_NVarchar, Length: 255, Nullable: false},
 			{Name: "created", Type: DB_DateTime, Nullable: false},
 			{Name: "updated", Type: DB_DateTime, Nullable: false},