<?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 Version20250605100851 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 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 ADD week_amount INT DEFAULT NULL, ADD csigned_date DATE DEFAULT NULL, CHANGE updated updated TIMESTAMP default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP
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 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 DROP week_amount, DROP csigned_date, CHANGE updated updated DATETIME DEFAULT CURRENT_TIMESTAMP NOT NULL
SQL);
$this->addSql(<<<'SQL'
ALTER TABLE post CHANGE updated updated DATETIME DEFAULT CURRENT_TIMESTAMP NOT NULL
SQL);
}
}