vendor/pimcore/pimcore/bundles/CoreBundle/Migrations/Version20210330132354.php line 1

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4.  * Pimcore
  5.  *
  6.  * This source file is available under two different licenses:
  7.  * - GNU General Public License version 3 (GPLv3)
  8.  * - Pimcore Commercial License (PCL)
  9.  * Full copyright and license information is available in
  10.  * LICENSE.md which is distributed with this source code.
  11.  *
  12.  *  @copyright  Copyright (c) Pimcore GmbH (http://www.pimcore.org)
  13.  *  @license    http://www.pimcore.org/license     GPLv3 and PCL
  14.  */
  15. namespace Pimcore\Bundle\CoreBundle\Migrations;
  16. use Doctrine\DBAL\Schema\Schema;
  17. use Doctrine\Migrations\AbstractMigration;
  18. /**
  19.  * Auto-generated Migration: Please modify to your needs!
  20.  */
  21. final class Version20210330132354 extends AbstractMigration
  22. {
  23.     public function getDescription(): string
  24.     {
  25.         return '';
  26.     }
  27.     public function up(Schema $schema): void
  28.     {
  29.         $this->addSql("ALTER TABLE `users_workspaces_asset` CHANGE `cpath` `cpath` varchar(765) COLLATE 'utf8_bin' NULL AFTER `cid`;");
  30.         $this->addSql("ALTER TABLE `users_workspaces_document` CHANGE `cpath` `cpath` varchar(765) COLLATE 'utf8_bin' NULL AFTER `cid`;");
  31.         $this->addSql("ALTER TABLE `users_workspaces_object` CHANGE `cpath` `cpath` varchar(765) COLLATE 'utf8_bin' NULL AFTER `cid`;");
  32.     }
  33.     public function down(Schema $schema): void
  34.     {
  35.         $this->addSql("ALTER TABLE `users_workspaces_asset` CHANGE `cpath` `cpath` varchar(765) COLLATE 'utf8_general_ci' NULL AFTER `cid`;");
  36.         $this->addSql("ALTER TABLE `users_workspaces_document` CHANGE `cpath` `cpath` varchar(765) COLLATE 'utf8_general_ci' NULL AFTER `cid`;");
  37.         $this->addSql("ALTER TABLE `users_workspaces_object` CHANGE `cpath` `cpath` varchar(765) COLLATE 'utf8_general_ci' NULL AFTER `cid`;");
  38.     }
  39. }