]> _ Git - psq.git/commitdiff
wait #7401 @4
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 18 Sep 2025 15:58:11 +0000 (17:58 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 18 Sep 2025 15:58:11 +0000 (17:58 +0200)
app/Console/Commands/ConvertArchivesToFluidbook.php
app/Console/Commands/Migration.php

index c6fc491208483ad9ae73164ee7e46ddd252eaec0..ba3a881b8a35e4f0c4c22cd371a0c3ab3b09c92f 100644 (file)
@@ -24,6 +24,7 @@ class ConvertArchivesToFluidbook extends Command
                 continue;
             }
             $path = \Storage::disk('local')->path($pdf->pdfPath);
+            $path=str_replace('fluidbook','flowpaper',$path);
             $e = explode('/', $path);
             array_pop($e);
             $filebin = implode('/', $e) . '/file.bin';
index 7a19580f4ff44b1e4d76448400f8f2bd1eef2d15..236ef78ba0dcb985bcdd47ef2492d227ae6b8801 100644 (file)
@@ -40,6 +40,8 @@ class Migration extends Command
 
         $tmp = '/tmp/dump' . rand(100000, 999999) . '.sql';
 
+        Artisan::call('optimize:clear');
+
         // Get dump from old server
         $mysqldump = new CommandLine('mysqldump', $tmp, false);
         $mysqldump->setArg('h', env('OLD_DB_HOST'));
@@ -69,5 +71,6 @@ class Migration extends Command
         `rclone sync olds3:prescription-sante/flowpaper/ /application/storage/app/flowpaper/`;
 
         Artisan::call('psq:fluidbook:archives');
+        Artisan::call('optimize:clear');
     }
 }