Fix unique index on v5 SQLite migration

This index needed a unique name in order for this query to succeed.
This commit is contained in:
Matt Baer 2020-03-03 11:46:51 -06:00
parent 471ef4d403
commit 83b2c5a21b
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ func oauthSlack(db *datastore) error {
"access_token",
wf_db.ColumnTypeVarChar,
wf_db.OptionalInt{Set: true, Value: 512}).SetDefault("")),
dialect.CreateUniqueIndex("oauth_users", "oauth_users", "user_id", "provider", "client_id"),
dialect.CreateUniqueIndex("oauth_users_uk", "oauth_users", "user_id", "provider", "client_id"),
}
if dialect != wf_db.DialectSQLite {