]> _ Git - psq.git/commitdiff
wip #7904 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 18 Dec 2025 16:54:42 +0000 (17:54 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 18 Dec 2025 16:54:42 +0000 (17:54 +0100)
app/Http/Controllers/Admin/PublishController.php
app/PdfFile.php
database/migrations/2021_01_13_000535_add_sends_pdf_to_collection.php
database/migrations/2025_12_18_152837_add_batch_uuid_column_to_pdf_files.php

index 8f9a06c5c99d422ce32c607c90654ff4a9d2771e..ca4f82c74b5dac4c520e7d6545dd03ad7a4ff565 100644 (file)
@@ -78,6 +78,8 @@ class PublishController extends Controller
 //            dispatch($pdfProcessEmailBatch->withFile());
 //        }
 
+
+
         return ['data' => $batch->id];
     }
 
index 4967a510a4786380be02dd3844f391a6b3f9dc02..4973546f7cf015e98dafe9c8040fcee96cd2e744 100644 (file)
@@ -108,7 +108,7 @@ class PdfFile extends TwillModel implements Sortable
         /** @var PdfFile $pdfFile */
         $pdfFile = self::query()->updateOrCreate([
             'slug' => Str::slug("{$collection->slug}_{$ref}"),
-            'published' => 0,
+            'published' => 1,
             'collection_id' => $collection_id,
         ],
             [
index 51e3d51af4d6e712bf724ceb67a9eaf58017c30a..bcdc74a8ef26452cb1d478e6900225bf0f605e3c 100644 (file)
@@ -27,7 +27,7 @@ class AddSendsPdfToCollection extends Migration
     public function down()
     {
         Schema::table('collections', function (Blueprint $table) {
-            $table->boolean('sends_pdf')->default(0);
+            $table->dropColumn('sends_pdf');
         });
     }
 }
index 6ff20b456759fcba713f4724db9a3f22e11a6994..cb73283556360c046045ef62ceb5abfa7ace4630 100644 (file)
@@ -14,7 +14,7 @@ class AddBatchUUIDColumnToPdfFiles extends Migration
     public function up()
     {
         Schema::table('pdf_files', function (Blueprint $table) {
-            $table->text('batch_uuid');
+            $table->text('batch_uuid')->default('');
         });
     }