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