feat: show last refresh time for Device instead of last updated

This commit is contained in:
Benjamin Nussbaum 2025-06-03 14:35:09 +02:00
parent f0b7180edd
commit 0ec6c27a53
6 changed files with 106 additions and 2 deletions

View file

@ -0,0 +1,28 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::table('devices', function (Blueprint $table) {
$table->timestamp('last_refreshed_at')->nullable();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('devices', function (Blueprint $table) {
$table->dropColumn('last_refreshed_at');
});
}
};