1
0
Fork 0

Update migrations, fix broken oauth change

This commit is contained in:
Daniel Supernault 2020-12-24 18:58:13 -07:00
parent 888ea7f07e
commit 4a885c8878
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7
1 changed files with 3 additions and 1 deletions

View File

@ -14,7 +14,9 @@ class AddProvidersColumnToOauthClientsTable extends Migration
public function up()
{
Schema::table('oauth_clients', function (Blueprint $table) {
$table->string('provider')->after('secret')->nullable();
if(Schema::hasColumn('oauth_clients', 'provider') == false) {
$table->string('provider')->after('secret')->nullable();
}
});
}