]> _ Git - pmi.git/commitdiff
wip #3262 @1
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 13 Dec 2019 11:54:20 +0000 (12:54 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 13 Dec 2019 11:54:20 +0000 (12:54 +0100)
app/Console/Commands/CMSMigration.php
resources/views/partials/footer-language-switcher.blade.php

index e08555dd8783d288a1e5902d861593f284ff1e19..f8fc5c160dda3aa9d4e8e55a9a2c3af014f72bed 100644 (file)
@@ -1,11 +1,20 @@
 <?php
 
-
 namespace App\Console\Commands;
 
 use Cubist\Util\ArrayUtil;
 use Illuminate\Console\Command;
 use Illuminate\Support\Facades\DB;
+use App\Models\Page;
+use App\Models\News;
+use App\Models\Locale;
+use App\Models\Settings;
+use App\Models\Translate;
+use App\Models\Application;
+use App\Models\Product;
+use App\Models\QuoteRequest;
+use App\Models\Specification;
+use App\Models\ProductType;
 
 class CMSMigration extends Command
 {
@@ -19,8 +28,8 @@ class CMSMigration extends Command
         echo 'Run backup of prod' . "\n";
         echo `cd /home/pmi/www;php artisan backup:run`;
 
-        $tables = ['cubist_cms_pages', 'cubist_news', 'cubist_settings', 'cubist_locales', 'cubist_translate', 'applications'];
-        $models = ['App\Models\Page', 'App\Models\News', 'App\Models\Locale', 'App\Models\Settings', 'App\Models\Translate', 'App\Models\Application'];
+        $tables = ['cubist_cms_pages', 'cubist_news', 'cubist_locales', 'cubist_settings', 'cubist_translate', 'applications', 'catalog_product_types', 'catalog_products', 'catalog_quotes', 'catalog_specifications'];
+        $models = [Page::class, News::class, Locale::class, Settings::class, Translate::class, Application::class, ProductType::class, Product::class, QuoteRequest::class, Specification::class];
         foreach ($models as $k => $model) {
             $models[$k] = '\'' . addcslashes($model, '\\') . '\'';
         }
index dff94c72207ccf24a5f912b989def9f9cad0aeaf..adce260c940806ef379c0816e1ba89e0b9cc99ff 100644 (file)
@@ -7,7 +7,6 @@
                          class="footer-locales-flag">{{ucfirst($locales['active_name'])}}
                 </span>
         <div class="footer-locales-list-wrapper">
-
             <ul class="footer-locales-list">
                 @foreach($locales['others'] as $code=>$locale)
                     <li><a href="{{CubistMenu::getCurrentPage()->getTranslatedPage($code)->getURL()}}"