diff --git a/database/migrations/2020_12_13_203646_add_providers_column_to_oauth_clients_table.php b/database/migrations/2020_12_13_203646_add_providers_column_to_oauth_clients_table.php index ad4628260..5b2a7ae7e 100644 --- a/database/migrations/2020_12_13_203646_add_providers_column_to_oauth_clients_table.php +++ b/database/migrations/2020_12_13_203646_add_providers_column_to_oauth_clients_table.php @@ -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(); + } }); }