mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-23 20:00:33 -04:00
Add unique constraint to users.oauth_user_id
This commit is contained in:
parent
a2e9d343f2
commit
a1437e4b98
@ -57,6 +57,12 @@ class AddDefaultNoteToClient extends Migration
|
||||
$table->dropColumn('default_tax_rate_id');
|
||||
});
|
||||
}
|
||||
|
||||
if (Utils::isNinja()) {
|
||||
Schema::table('users', function ($table) {
|
||||
$table->unique(['oauth_user_id', 'oauth_provider_id']);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user