<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20220216133003 extends AbstractMigration
{
public function getDescription(): string
{
return 'Add image_mobile property to Banner';
}
public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE banner ADD image_mobile VARCHAR(255) NOT NULL AFTER image');
// Some re-ordering of columns.
$this->addSql("ALTER TABLE banner MODIFY drupal_id CHAR(36) NULL comment '(DC2Type:uuid)' AFTER id");
$this->addSql("ALTER TABLE banner MODIFY content VARCHAR(255) NOT NULL AFTER subtitle;");
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE banner DROP image_mobile');
}
public function isTransactional(): bool
{
return false;
}
}