Roberto Santini 1 tydzień temu
rodzic
commit
0c90d8e832

+ 2
- 1
app/Notifications/AnnotazionePubblicaApertaDa.php Wyświetl plik

@@ -9,10 +9,11 @@ use Illuminate\Contracts\Queue\ShouldQueue;
9 9
 use Illuminate\Notifications\Messages\MailMessage;
10 10
 use Illuminate\Notifications\Notification;
11 11
 use Illuminate\Queue\InteractsWithQueue;
12
+use Illuminate\Queue\SerializesModels;
12 13
 
13 14
 class AnnotazionePubblicaApertaDa extends Notification implements ShouldQueue
14 15
 {
15
-    use Queueable, InteractsWithQueue;
16
+    use Queueable, InteractsWithQueue, SerializesModels;
16 17
 
17 18
     public function __construct(
18 19
         protected Segnalazione $segnalazione,

+ 3
- 2
config/mail-tracker.php Wyświetl plik

@@ -96,9 +96,10 @@ return [
96 96
     'tracker-queue'             => null,
97 97
 
98 98
     /**
99
-     * Size limit for content length stored in database
99
+     * Size limit for content length stored in database (bytes/chars).
100
+     * sent_emails.content is longText; keep a cap to avoid unbounded rows.
100 101
      */
101
-    'content-max-size'          => 65535,
102
+    'content-max-size'          => 16777215,
102 103
 
103 104
     /**
104 105
      * Length of time to default past email search - if set, will set the default past limit to the amount of days below (Ex: => 356)

+ 30
- 0
database/migrations/2026_09_08_235100_change_sent_emails_content_to_longtext.php Wyświetl plik

@@ -0,0 +1,30 @@
1
+<?php
2
+
3
+use Illuminate\Database\Migrations\Migration;
4
+use Illuminate\Database\Schema\Blueprint;
5
+use Illuminate\Support\Facades\Schema;
6
+
7
+return new class extends Migration
8
+{
9
+    public function up(): void
10
+    {
11
+        if (! Schema::hasTable('sent_emails') || ! Schema::hasColumn('sent_emails', 'content')) {
12
+            return;
13
+        }
14
+
15
+        Schema::table('sent_emails', function (Blueprint $table) {
16
+            $table->longText('content')->nullable()->change();
17
+        });
18
+    }
19
+
20
+    public function down(): void
21
+    {
22
+        if (! Schema::hasTable('sent_emails') || ! Schema::hasColumn('sent_emails', 'content')) {
23
+            return;
24
+        }
25
+
26
+        Schema::table('sent_emails', function (Blueprint $table) {
27
+            $table->text('content')->nullable()->change();
28
+        });
29
+    }
30
+};

Ładowanie…
Anuluj
Zapisz