Skip to content

Commit bf656c7

Browse files
committed
feat:(LAR-89) remove down function
1 parent 987dca0 commit bf656c7

File tree

3 files changed

+6
-12
lines changed

3 files changed

+6
-12
lines changed

app/Models/User.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ final class User extends Authenticatable implements FilamentUser, HasAvatar, Has
113113
'last_login_at' => 'datetime',
114114
'banned_at' => 'datetime',
115115
'settings' => 'array',
116+
'last_active_at' => 'datetime',
116117
];
117118

118119
public function hasProvider(string $provider): bool

composer.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

database/migrations/2024_12_19_234550_add_last_active_at_to_users_table.php

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,7 @@
1111
public function up(): void
1212
{
1313
Schema::table('users', static function (Blueprint $table): void {
14-
$table->timestamp('last_active_at')->nullable();
15-
});
16-
}
17-
18-
public function down(): void
19-
{
20-
Schema::table('users', function (Blueprint $table): void {
21-
$table->dropColumn('last_active_at');
14+
$table->timestamp('last_active_at')->nullable()->after('last_login_ip');
2215
});
2316
}
2417
};

0 commit comments

Comments
 (0)