소스 검색

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 4 년 전
부모
커밋
83b2c5a21b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. +1
    -1
      migrations/v5.go

+ 1
- 1
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 {


불러오는 중...
취소
저장