From: Vincent Vanwaelscappel Date: Tue, 8 Mar 2022 11:47:08 +0000 (+0100) Subject: wip #4211 @0.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=981219147ae334d9218ef4695ba2ba2a581fda2a;p=fluidbook-toolbox.git wip #4211 @0.5 --- diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 9b92d4f78..4fe7c8958 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -24,6 +24,7 @@ + @@ -696,14 +697,8 @@ - - - - 1639734517141 - 1640247316541 @@ -1041,7 +1036,14 @@ - diff --git a/app/Console/Commands/Precache.php b/app/Console/Commands/Precache.php index d85cdf487..f708f335f 100644 --- a/app/Console/Commands/Precache.php +++ b/app/Console/Commands/Precache.php @@ -8,6 +8,7 @@ use App\Models\ELearningMedia; use App\Models\ELearningPackage; use App\Models\FluidbookCollection; use App\Models\FluidbookIconset; +use App\Models\FluidbookPublication; use App\Models\FluidbookQuote; use App\Models\FluidbookTheme; use App\Models\FluidbookTranslate; @@ -31,6 +32,7 @@ class Precache extends CubistCommand 'Cache user data' => 'class:' . User::class, 'Cache company data' => 'class:' . Company::class, 'Cache permissions data' => 'permissions', + 'Cache fluidbook publication data' => 'class:' . FluidbookPublication::class, 'Cache fluidbook quote data' => 'class:' . FluidbookQuote::class, 'Cache fluidbook theme data' => 'class:' . FluidbookTheme::class, 'Cache fluidbook icon set data' => 'class:' . FluidbookIconset::class, diff --git a/app/Console/Commands/WorkshopMigration.php b/app/Console/Commands/WorkshopMigration.php index daf2a9898..61b07ddfd 100644 --- a/app/Console/Commands/WorkshopMigration.php +++ b/app/Console/Commands/WorkshopMigration.php @@ -95,9 +95,7 @@ class WorkshopMigration extends CubistCommand 'changedate' => 'updated_at', 'compiledate' => 'compilation_date', 'composition_update' => 'composition_update_at', - 'dir_external' => 'install_ftp_settings', - 'dir_hosting' => 'install_hosting_settings', - 'dir_references' => 'install_references_settings', + 'exportdatas' => 'export_data', ]; $mapValues = ['Open Sans (police du Fluidbook)' => 'OpenSans']; @@ -107,10 +105,10 @@ class WorkshopMigration extends CubistCommand $this->line('Begin publications migration'); FluidbookTheme::$updateWS2ViewOnChange = false; - foreach (FluidbookPublication::lazy() as $book) { - $this->line('Delete ' . $book->id); - $book->delete(); - } +// foreach (FluidbookPublication::lazy() as $book) { +// $this->line('Delete ' . $book->id); +// $book->delete(); +// } FluidbookPublication::truncate(); foreach (DB::table($this->_oldDB . '.books')->get() as $e) { diff --git a/app/Models/FluidbookPublication.php b/app/Models/FluidbookPublication.php index c59df3ba6..4b7005f43 100644 --- a/app/Models/FluidbookPublication.php +++ b/app/Models/FluidbookPublication.php @@ -86,9 +86,7 @@ class FluidbookPublication extends ToolboxModel $this->addField('extranet_task', Integer::class, __('Tâche de l\'extranet')); $this->addField('compilation_date', Datetime::class, __('Dernière compilation')); $this->addField('composition_updated_at', Datetime::class, __('Dernière modification de la composition')); - $this->addField('install_ftp_settings', LongText::class, __('Paramètres Installation FTP')); - $this->addField('install_hosting_settings', LongText::class, __('Paramètres Installation Hosting')); - $this->addField('install_references_settings', LongText::class, __('Paramètres Installation Résferences')); + $this->addField('export_data', Hidden::class, __('Paramètres d\'export')); $this->setSettingsFields(); }