Roberto Santini 1週間前
コミット
4c99f35ead

+ 7
- 0
GestioneManutenzioni.skipper ファイルの表示

68
       <field name="token" type="string" uuid="e5bd4274-35d3-4bff-9643-31c0b84ef421"/>
68
       <field name="token" type="string" uuid="e5bd4274-35d3-4bff-9643-31c0b84ef421"/>
69
       <field name="meta" type="json" uuid="feb6065e-dfd6-47d6-a5bb-1d54c5d99050"/>
69
       <field name="meta" type="json" uuid="feb6065e-dfd6-47d6-a5bb-1d54c5d99050"/>
70
       <field name="origine" type="string" uuid="330da781-7ebb-4a50-b6fd-b626f954735f"/>
70
       <field name="origine" type="string" uuid="330da781-7ebb-4a50-b6fd-b626f954735f"/>
71
+      <field name="cc" type="json" uuid="8b114aab-e736-49f0-a36f-c9a9c14253ba"/>
72
+      <field name="bcc" type="json" uuid="04bc48b2-88ce-462f-920f-01ade337f877"/>
71
       <field name="tempo_stimato" type="decimal" size="10" uuid="91880b18-1a17-4b31-85e5-61ae81e6aba2">
73
       <field name="tempo_stimato" type="decimal" size="10" uuid="91880b18-1a17-4b31-85e5-61ae81e6aba2">
72
         <orm-attributes>
74
         <orm-attributes>
73
           <attribute name="decimal">2</attribute>
75
           <attribute name="decimal">2</attribute>
3900
         </element>
3902
         </element>
3901
         <element action="reorder" uuid="c48733ff-ec02-4aa0-be7c-25be727c3c1e" parent-uuid="43c9733c-5074-4c8d-9cb1-33867510c2fc" sibling-uuid="c7582fe6-bc2e-4eee-ad56-9593b156d48c" previous-sibling-uuid="2d89a9fb-9229-412e-b6df-9b35a19f14a5" type="field" helper="true"/>
3903
         <element action="reorder" uuid="c48733ff-ec02-4aa0-be7c-25be727c3c1e" parent-uuid="43c9733c-5074-4c8d-9cb1-33867510c2fc" sibling-uuid="c7582fe6-bc2e-4eee-ad56-9593b156d48c" previous-sibling-uuid="2d89a9fb-9229-412e-b6df-9b35a19f14a5" type="field" helper="true"/>
3902
       </revision>
3904
       </revision>
3905
+      <revision uuid="a2878dc9-b644-43e8-9397-b91a95e23391" date="2026-09-07 23:51:51.823321" exportable="true">
3906
+        <element action="update" uuid="c7582fe6-bc2e-4eee-ad56-9593b156d48c" parent-uuid="43c9733c-5074-4c8d-9cb1-33867510c2fc" sibling-uuid="d0ffea66-3d82-495a-bbc8-f7cc443bae31" type="field">
3907
+          <property name="type" value="boolean"/>
3908
+        </element>
3909
+      </revision>
3903
     </migrations>
3910
     </migrations>
3904
   </module>
3911
   </module>
3905
   <visual-data>
3912
   <visual-data>

+ 4
- 0
app/Models/AbstractModels/AbstractSegnalazione.php ファイルの表示

47
         'token' => 'string',
47
         'token' => 'string',
48
         'meta' => 'array',
48
         'meta' => 'array',
49
         'origine' => 'string',
49
         'origine' => 'string',
50
+        'cc' => 'array',
51
+        'bcc' => 'array',
50
         'tempo_stimato' => 'decimal:2',
52
         'tempo_stimato' => 'decimal:2',
51
         'created_at' => 'datetime',
53
         'created_at' => 'datetime',
52
         'updated_at' => 'datetime'
54
         'updated_at' => 'datetime'
75
         'token',
77
         'token',
76
         'meta',
78
         'meta',
77
         'origine',
79
         'origine',
80
+        'cc',
81
+        'bcc',
78
         'tempo_stimato',
82
         'tempo_stimato',
79
         'created_at',
83
         'created_at',
80
         'updated_at'
84
         'updated_at'

+ 0
- 16
app/Models/Segnalazione.php ファイルの表示

17
   /** Flag runtime: non notificare il cliente (Aperta da) su questo salvataggio. */
17
   /** Flag runtime: non notificare il cliente (Aperta da) su questo salvataggio. */
18
   public bool $skipNotificaCliente = false;
18
   public bool $skipNotificaCliente = false;
19
 
19
 
20
-  public function getCasts()
21
-  {
22
-    return array_merge(parent::getCasts(), [
23
-      'cc' => 'array',
24
-      'bcc' => 'array',
25
-    ]);
26
-  }
27
-
28
-  public function getFillable()
29
-  {
30
-    return array_merge(parent::getFillable(), [
31
-      'cc',
32
-      'bcc',
33
-    ]);
34
-  }
35
-
36
   // public function getCasts()
20
   // public function getCasts()
37
   // {
21
   // {
38
   //   return array_merge(parent::getCasts(), [
22
   //   return array_merge(parent::getCasts(), [

+ 0
- 23
database/migrations/2026_09_08_090000_add_cc_bcc_to_segnalazione.php ファイルの表示

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
-        Schema::table('segnalazione', function (Blueprint $table) {
12
-            $table->json('cc')->nullable()->after('origine');
13
-            $table->json('bcc')->nullable()->after('cc');
14
-        });
15
-    }
16
-
17
-    public function down(): void
18
-    {
19
-        Schema::table('segnalazione', function (Blueprint $table) {
20
-            $table->dropColumn(['cc', 'bcc']);
21
-        });
22
-    }
23
-};

+ 42
- 0
database/migrations/2026_09_08_095242_skipper_migrations_2026090809524298.php ファイルの表示

1
+<?php
2
+/* 
3
+ * Migrations generated by: Skipper (http://www.skipper18.com)
4
+ * Migration id: 7ae513b6-1349-4950-a0a7-3409bd0a7f87
5
+ * Migration datetime: 2026-09-08 09:52:42.989062
6
+ */ 
7
+
8
+use Illuminate\Support\Facades\Schema;
9
+use Illuminate\Database\Schema\Blueprint;
10
+use Illuminate\Database\Migrations\Migration;
11
+
12
+class SkipperMigrations2026090809524298 extends Migration
13
+{
14
+    /**
15
+     * Run the migrations.
16
+     *
17
+     * @return void
18
+     */
19
+    public function up()
20
+    {
21
+        Schema::table('segnalazione', function (Blueprint $table) {
22
+            $table->json('cc')->nullable(true)->after('origine');
23
+        });
24
+        Schema::table('segnalazione', function (Blueprint $table) {
25
+            $table->json('bcc')->nullable(true)->after('cc');
26
+        });
27
+    }
28
+    /**
29
+     * Reverse the migrations.
30
+     *
31
+     * @return void
32
+     */
33
+    public function down()
34
+    {
35
+        Schema::table('segnalazione', function (Blueprint $table) {
36
+            $table->dropColumn('bcc');
37
+        });
38
+        Schema::table('segnalazione', function (Blueprint $table) {
39
+            $table->dropColumn('cc');
40
+        });
41
+    }
42
+}

読み込み中…
キャンセル
保存