This commit is contained in:
ct
2025-08-11 02:35:35 +08:00
parent 4a80723243
commit f3c91b9a64
24 changed files with 2035 additions and 214 deletions

View File

@@ -0,0 +1,38 @@
<?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('crawl_shot_jobs', function (Blueprint $table) {
$table->string('webhook_url')->nullable()->after('parameters');
$table->json('webhook_events_filter')->nullable()->after('webhook_url');
$table->integer('webhook_attempts')->default(0)->after('webhook_events_filter');
$table->text('webhook_last_error')->nullable()->after('webhook_attempts');
$table->timestamp('webhook_next_retry_at')->nullable()->after('webhook_last_error');
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('crawl_shot_jobs', function (Blueprint $table) {
$table->dropColumn([
'webhook_url',
'webhook_events_filter',
'webhook_attempts',
'webhook_last_error',
'webhook_next_retry_at'
]);
});
}
};