mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-21 14:01:27 +00:00
Update migration
This commit is contained in:
parent
c53894fe16
commit
ef57d471e5
1 changed files with 11 additions and 3 deletions
|
@ -24,9 +24,17 @@ return new class extends Migration
|
|||
public function down(): void
|
||||
{
|
||||
Schema::table('users', function (Blueprint $table) {
|
||||
$table->dropColumn('has_roles');
|
||||
$table->dropColumn('parent_id');
|
||||
$table->dropColumn('role_id');
|
||||
if (Schema::hasColumn('users', 'has_roles')) {
|
||||
$table->dropColumn('has_roles');
|
||||
}
|
||||
|
||||
if (Schema::hasColumn('users', 'role_id')) {
|
||||
$table->dropColumn('role_id');
|
||||
}
|
||||
|
||||
if (Schema::hasColumn('users', 'parent_id')) {
|
||||
$table->dropColumn('parent_id');
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue