<?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 Version20250622145506 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$this->addSql(<<<'SQL'
ALTER TABLE basket_item ADD info TEXT DEFAULT NULL, ADD eav_entity_id INT DEFAULT NULL
SQL);
$this->addSql(<<<'SQL'
ALTER TABLE contact CHANGE updated updated TIMESTAMP default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP
SQL);
$this->addSql(<<<'SQL'
ALTER TABLE gutschrift CHANGE updated updated TIMESTAMP default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP
SQL);
$this->addSql(<<<'SQL'
ALTER TABLE inquire CHANGE message message VARCHAR(65535) DEFAULT NULL
SQL);
$this->addSql(<<<'SQL'
ALTER TABLE invoice CHANGE updated updated TIMESTAMP default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP
SQL);
$this->addSql(<<<'SQL'
ALTER TABLE offer CHANGE updated updated TIMESTAMP default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP
SQL);
$this->addSql(<<<'SQL'
ALTER TABLE order_confirmation CHANGE updated updated TIMESTAMP default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP
SQL);
$this->addSql(<<<'SQL'
ALTER TABLE order_confirmation_item ADD info TEXT DEFAULT NULL, ADD eav_entity_id INT DEFAULT NULL
SQL);
$this->addSql(<<<'SQL'
ALTER TABLE post CHANGE updated updated TIMESTAMP default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP
SQL);
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql(<<<'SQL'
ALTER TABLE basket_item DROP info, DROP eav_entity_id
SQL);
$this->addSql(<<<'SQL'
ALTER TABLE contact CHANGE updated updated DATETIME DEFAULT CURRENT_TIMESTAMP NOT NULL
SQL);
$this->addSql(<<<'SQL'
ALTER TABLE gutschrift CHANGE updated updated DATETIME DEFAULT CURRENT_TIMESTAMP NOT NULL
SQL);
$this->addSql(<<<'SQL'
ALTER TABLE inquire CHANGE message message MEDIUMTEXT DEFAULT NULL
SQL);
$this->addSql(<<<'SQL'
ALTER TABLE invoice CHANGE updated updated DATETIME DEFAULT CURRENT_TIMESTAMP NOT NULL
SQL);
$this->addSql(<<<'SQL'
ALTER TABLE offer CHANGE updated updated DATETIME DEFAULT CURRENT_TIMESTAMP NOT NULL
SQL);
$this->addSql(<<<'SQL'
ALTER TABLE order_confirmation CHANGE updated updated DATETIME DEFAULT CURRENT_TIMESTAMP NOT NULL
SQL);
$this->addSql(<<<'SQL'
ALTER TABLE order_confirmation_item DROP info, DROP eav_entity_id
SQL);
$this->addSql(<<<'SQL'
ALTER TABLE post CHANGE updated updated DATETIME DEFAULT CURRENT_TIMESTAMP NOT NULL
SQL);
}
}