This commit is contained in:
Pig Fang 2020-06-26 09:21:09 +08:00
parent ea26abcc3b
commit a3ea8e3c62
2 changed files with 5 additions and 14 deletions

View File

@ -14,8 +14,4 @@ class RemoveLikesField extends Migration
});
}
}
public function down()
{
}
}

View File

@ -8,15 +8,10 @@ class AddOAuthProviderField extends Migration
{
public function up()
{
Schema::table('oauth_clients', function (Blueprint $table) {
$table->string('provider')->after('secret')->nullable();
});
}
public function down()
{
Schema::table('oauth_clients', function (Blueprint $table) {
$table->removeColumn('provider');
});
if (!Schema::hasColumn('oauth_clients', 'provider')) {
Schema::table('oauth_clients', function (Blueprint $table) {
$table->string('provider')->after('secret')->nullable();
});
}
}
}