Now correctly showing packet receive time, and sending Notifications based on the packet address, not the node address

This commit is contained in:
2023-08-05 21:32:45 +10:00
parent c8a2affbfa
commit 74a56d1e17
9 changed files with 74 additions and 24 deletions

View File

@@ -0,0 +1,34 @@
<?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('netmail_path',function (Blueprint $table) {
$table->datetime('recv_at')->nullable();
});
DB::statement('UPDATE netmail_path SET recv_at=created_at FROM netmails WHERE netmails.id=netmail_path.netmail_id');
Schema::table('echomail_path',function (Blueprint $table) {
$table->datetime('recv_at')->nullable();
});
DB::statement('UPDATE echomail_path SET recv_at=created_at FROM echomails WHERE echomails.id=echomail_path.echomail_id');
}
/**
* Reverse the migrations.
*/
public function down(): void
{
//
}
};