vendor/pimcore/data-hub/src/Migrations/PimcoreX/Version20210305134111.php line 1

Open in your IDE?
  1. <?php
  2. /**
  3.  * Pimcore
  4.  *
  5.  * This source file is available under two different licenses:
  6.  * - GNU General Public License version 3 (GPLv3)
  7.  * - Pimcore Commercial License (PCL)
  8.  * Full copyright and license information is available in
  9.  * LICENSE.md which is distributed with this source code.
  10.  *
  11.  *  @copyright  Copyright (c) Pimcore GmbH (http://www.pimcore.org)
  12.  *  @license    http://www.pimcore.org/license     GPLv3 and PCL
  13.  */
  14. namespace Pimcore\Bundle\DataHubBundle\Migrations\PimcoreX;
  15. use Doctrine\DBAL\Schema\Schema;
  16. use Pimcore\Migrations\BundleAwareMigration;
  17. use Pimcore\Model\Tool\SettingsStore;
  18. /**
  19.  * Auto-generated Migration: Please modify to your needs!
  20.  */
  21. class Version20210305134111 extends BundleAwareMigration
  22. {
  23.     protected function getBundleName(): string
  24.     {
  25.         return 'PimcoreDataHubBundle';
  26.     }
  27.     protected function checkBundleInstalled(): bool
  28.     {
  29.         //need to always return true here, as the migration is setting the bundle installed
  30.         return true;
  31.     }
  32.     public function up(Schema $schema): void
  33.     {
  34.         SettingsStore::set('BUNDLE_INSTALLED__Pimcore\\Bundle\\DataHubBundle\\PimcoreDataHubBundle'true'bool''pimcore');
  35.     }
  36.     public function down(Schema $schema): void
  37.     {
  38.         // nothing to do
  39.     }
  40. }