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

View file

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