llp пре 1 недеља
родитељ
комит
8808de9dce

+ 1 - 1
packages/Longyi/Gift/src/Database/Migrations/2026_04_01_230815_add_giftcard_fields_to_cart_table.php

@@ -14,7 +14,7 @@ return new class extends Migration
         Schema::table('cart', function (Blueprint $table) {
             $table->string('giftcard_number', 191)->nullable()->after('applied_cart_rule_ids');
             $table->decimal('giftcard_amount', 10, 2)->nullable()->after('giftcard_number');
-            $table->decimal('base_giftcard_amount', 10, 2)->nullable()->after('base_giftcard_amount');
+            $table->decimal('base_giftcard_amount', 10, 2)->nullable()->after('giftcard_amount');
         });
     }
 

+ 1 - 1
packages/Longyi/Gift/src/Database/Migrations/2026_04_01_230829_add_giftcard_fields_to_orders_table.php

@@ -14,7 +14,7 @@ return new class extends Migration
         Schema::table('orders', function (Blueprint $table) {
             $table->string('giftcard_number', 191)->nullable()->after('coupon_code');
             $table->decimal('giftcard_amount', 10, 2)->nullable()->after('giftcard_number');
-            $table->decimal('base_giftcard_amount', 10, 2)->nullable()->after('base_giftcard_amount');
+            $table->decimal('base_giftcard_amount', 10, 2)->nullable()->after('giftcard_amount');
         });
     }
 

+ 1 - 1
packages/Longyi/Gift/src/Database/Migrations/2026_04_01_230841_add_giftcard_info_to_invoices_table.php

@@ -14,7 +14,7 @@ return new class extends Migration
         Schema::table('invoices', function (Blueprint $table) {
             $table->string('giftcard_number', 191)->nullable()->after('grand_total'); // Choose the appropriate position for the column
             $table->decimal('giftcard_amount', 10, 2)->nullable()->after('giftcard_number'); // Using 'nullable' because not all invoices may use a giftcard
-            $table->decimal('base_giftcard_amount', 10, 2)->nullable()->after('base_giftcard_amount'); // Using 'nullable' because not all invoices may use a giftcard
+            $table->decimal('base_giftcard_amount', 10, 2)->nullable()->after('giftcard_amount'); // Using 'nullable' because not all invoices may use a giftcard
         });
     }