Update
This commit is contained in:
@@ -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'
|
||||
]);
|
||||
});
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user