Add unique constraint to users.oauth_user_id
This commit is contained in:
parent
a2e9d343f2
commit
a1437e4b98
1 changed files with 6 additions and 0 deletions
|
|
@ -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…
Add table
Reference in a new issue