Fix unique index on v5 SQLite migration

This index needed a unique name in order for this query to succeed.
pull/275/head
Matt Baer 5 years ago
parent 471ef4d403
commit 83b2c5a21b
  1. 2
      migrations/v5.go

@ -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 {

Loading…
Cancel
Save