Now correctly showing packet receive time, and sending Notifications based on the packet address, not the node address
This commit is contained in:
34
database/migrations/2023_08_05_205920_mail_recvtime.php
Normal file
34
database/migrations/2023_08_05_205920_mail_recvtime.php
Normal 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
|
||||
{
|
||||
//
|
||||
}
|
||||
};
|
Reference in New Issue
Block a user