Skip to content

Commit d6c731f

Browse files
committed
refact: (LAR-86) refactoring add ban migration
1 parent 18eefd6 commit d6c731f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

database/migrations/2024_11_10_032051_add_ban_field_to_users_table.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@
1111
public function up(): void
1212
{
1313
Schema::table('users', static function (Blueprint $table): void {
14-
$table->string('banned_reason')->after('reputation')->nullable();
15-
$table->timestamp('banned_at')->after('reputation')->nullable();
14+
$table->after('reputation', function (Blueprint $table): void {
15+
$table->string('banned_reason')->nullable();
16+
$table->timestamp('banned_at')->nullable();
17+
});
1618
});
1719
}
1820

0 commit comments

Comments
 (0)