From c51d3a3709348bee724a0fce3ac52e58daf31708 Mon Sep 17 00:00:00 2001 From: Richard Cox Date: Wed, 16 Sep 2020 17:47:42 +0100 Subject: [PATCH] Ensure the api key secret db field is long enough --- src/jetstream/datastore/20200814140918_ApiKeys.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jetstream/datastore/20200814140918_ApiKeys.go b/src/jetstream/datastore/20200814140918_ApiKeys.go index 2a00b44365..43bc76b181 100644 --- a/src/jetstream/datastore/20200814140918_ApiKeys.go +++ b/src/jetstream/datastore/20200814140918_ApiKeys.go @@ -10,7 +10,7 @@ func init() { RegisterMigration(20200814140918, "ApiKeys", func(txn *sql.Tx, conf *goose.DBConf) error { apiTokenTable := "CREATE TABLE IF NOT EXISTS api_keys (" apiTokenTable += "guid VARCHAR(36) NOT NULL UNIQUE," - apiTokenTable += "secret VARCHAR(36) NOT NULL UNIQUE," + apiTokenTable += "secret VARCHAR(64) NOT NULL UNIQUE," apiTokenTable += "user_guid VARCHAR(36) NOT NULL," apiTokenTable += "comment VARCHAR(255) NOT NULL," apiTokenTable += "last_used TIMESTAMP,"