vendor/boldr/opening-hours-bundle/migrations/Version2__11_0.php line 1

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace Boldr\Cms\OpeningHoursBundle\Migrations;
  4. use Doctrine\DBAL\Schema\Schema;
  5. use Boldr\Cms\CmsBundle\BoldrCmsMigration;
  6. class Version2__11_0 extends BoldrCmsMigration
  7. {
  8. public function getBundle(): string { return 'boldr/opening-hours-bundle'; }
  9. public function getVersion(): ?string { return '2.11.0'; }
  10. public function up(Schema $schema): void
  11. {
  12. // this up() migration is auto-generated, please modify it to your needs
  13. $this->addSql('ALTER TABLE opening_hours_set ADD by_appointment LONGTEXT NOT NULL COMMENT \'(DC2Type:json)\'');
  14. }
  15. public function down(Schema $schema): void
  16. {
  17. // this down() migration is auto-generated, please modify it to your needs
  18. $this->addSql('ALTER TABLE opening_hours_set DROP by_appointment');
  19. }
  20. }