Switchout DB to CockroachDB
This commit is contained in:
@@ -3,19 +3,19 @@
|
||||
namespace App\Models;
|
||||
|
||||
use Carbon\Carbon;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
use Jenssegers\Mongodb\Eloquent\Model;
|
||||
use Jenssegers\Mongodb\Eloquent\SoftDeletes;
|
||||
|
||||
use App\Classes\FTN\Message;
|
||||
use App\Interfaces\Packet;
|
||||
use App\Traits\{EncodeUTF8,UseMongo};
|
||||
use App\Traits\EncodeUTF8;
|
||||
|
||||
final class Netmail extends Model implements Packet
|
||||
{
|
||||
private const LOGKEY = 'MN-';
|
||||
|
||||
use SoftDeletes,UseMongo,EncodeUTF8;
|
||||
use SoftDeletes,EncodeUTF8;
|
||||
|
||||
private const cast_utf8 = [
|
||||
'to',
|
||||
@@ -80,8 +80,8 @@ final class Netmail extends Model implements Packet
|
||||
$o->flags = $this->flags;
|
||||
|
||||
$o->msgid = sprintf('%s %08x',$this->fftn->ftn3d,crc32($this->id));
|
||||
if ($this->reply)
|
||||
$o->reply = $this->reply;
|
||||
if ($this->replyid)
|
||||
$o->replyid = $this->replyid;
|
||||
|
||||
$o->message = $this->msg;
|
||||
$o->tagline = $this->tagline;
|
||||
|
Reference in New Issue
Block a user