Add notification filters
This commit is contained in:
@@ -26,6 +26,7 @@ class NotificationActionFactory extends Factory
|
||||
'delivery_url' => 'https://hooks.'.fake()->domainName().'/kanbangit/'.fake()->uuid(),
|
||||
'enabled' => true,
|
||||
'event_type' => NotificationEventType::TicketStatusChanged,
|
||||
'filters' => [],
|
||||
'message_template' => null,
|
||||
'name' => fake()->unique()->sentence(3),
|
||||
'project_id' => Project::factory(),
|
||||
|
||||
@@ -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('notification_actions', function (Blueprint $table): void {
|
||||
$table->json('filters')->nullable();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('notification_actions', function (Blueprint $table): void {
|
||||
$table->dropColumn('filters');
|
||||
});
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user