Reformat various code.

This commit is contained in:
James Cole
2022-03-29 15:01:12 +02:00
parent d04efb8325
commit 452b6d0e1b
19 changed files with 95 additions and 94 deletions

View File

@@ -47,7 +47,7 @@ class UserGroups extends Migration
foreach ($this->tables as $tableName) {
Schema::table(
$tableName, function (Blueprint $table) use ($tableName) {
$table->dropForeign(sprintf('%s_to_ugi', $tableName));
if (Schema::hasColumn($tableName, 'user_group_id')) {
$table->dropColumn('user_group_id');

View File

@@ -31,6 +31,16 @@ use Illuminate\Support\Facades\Schema;
*/
class CreateLocalPersonalAccessTokensTable extends Migration
{
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('personal_access_tokens');
}
/**
* Run the migrations.
*
@@ -50,14 +60,4 @@ class CreateLocalPersonalAccessTokensTable extends Migration
});
}
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('personal_access_tokens');
}
}