Skip to content

Commit

Permalink
Ensure the api key secret db field is long enough (#488)
Browse files Browse the repository at this point in the history
  • Loading branch information
richard-cox authored Sep 17, 2020
1 parent 9a07272 commit 4967c8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jetstream/datastore/20200814140918_ApiKeys.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,"
Expand Down

0 comments on commit 4967c8d

Please sign in to comment.