feat: add function to pause screen generation for up to 480min

chore: code quality
This commit is contained in:
Benjamin Nussbaum 2025-07-10 17:47:42 +02:00
parent 4fb5f54e18
commit 7e355c2d92
10 changed files with 207 additions and 25 deletions

View file

@ -0,0 +1,22 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
public function up(): void
{
Schema::table('devices', function (Blueprint $table) {
$table->dateTime('pause_until')->nullable()->after('last_refreshed_at');
});
}
public function down(): void
{
Schema::table('devices', function (Blueprint $table) {
$table->dropColumn('pause_until');
});
}
};