update bugs user notification

This commit is contained in:
Linksehat Staging Server
2024-05-28 09:00:27 +07:00
parent 2645a7d785
commit 151248d448
10 changed files with 353 additions and 46 deletions

View File

@@ -17,6 +17,7 @@ return new class extends Migration
$table->id();
$table->morphs('notifiabletoken', 'notifiabletoken');
$table->string('origin');
$table->string('device_id')->nullable();
$table->string('type');
$table->string('token');
$table->string('status');
@@ -26,7 +27,7 @@ return new class extends Migration
$table->unsignedBigInteger('created_by')->nullable()->index();
$table->unsignedBigInteger('updated_by')->nullable()->index();
$table->unsignedBigInteger('deleted_by')->nullable()->index();
$table->index('token');
});
}

View File

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