mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: allow storage of non unique rows in oauth2_user_infos
Certain DBs have duplicates already, if we want to ensure uniqueness here we need to decide first how to clean up existing data and confirm all the plugins expect this.
This commit is contained in:
@@ -2,6 +2,6 @@
|
||||
|
||||
class AddIndexToOauth2UserInfo < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
add_index :oauth2_user_infos, [:user_id, :provider], unique: true
|
||||
add_index :oauth2_user_infos, [:user_id, :provider]
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user