<?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 Version20240826104102 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('ALTER TABLE contact ADD nachname VARCHAR(255) DEFAULT NULL, ADD anrede VARCHAR(255) DEFAULT NULL, CHANGE updated updated TIMESTAMP default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP');
$this->addSql('ALTER TABLE gutschrift ADD nachname VARCHAR(255) DEFAULT NULL');
$this->addSql('ALTER TABLE inquire CHANGE message message VARCHAR(65535) DEFAULT NULL');
$this->addSql('ALTER TABLE invoice ADD nachname VARCHAR(255) DEFAULT NULL');
$this->addSql('ALTER TABLE offer ADD nachname VARCHAR(255) DEFAULT NULL');
$this->addSql('ALTER TABLE order_confirmation ADD nachname VARCHAR(255) DEFAULT NULL');
$this->addSql('ALTER TABLE order_delivery ADD nachname VARCHAR(255) DEFAULT NULL');
$this->addSql('ALTER TABLE post CHANGE updated updated TIMESTAMP default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE contact DROP nachname, DROP anrede, CHANGE updated updated DATETIME DEFAULT CURRENT_TIMESTAMP NOT NULL');
$this->addSql('ALTER TABLE gutschrift DROP nachname');
$this->addSql('ALTER TABLE inquire CHANGE message message MEDIUMTEXT DEFAULT NULL');
$this->addSql('ALTER TABLE invoice DROP nachname');
$this->addSql('ALTER TABLE offer DROP nachname');
$this->addSql('ALTER TABLE order_confirmation DROP nachname');
$this->addSql('ALTER TABLE order_delivery DROP nachname');
$this->addSql('ALTER TABLE post CHANGE updated updated DATETIME DEFAULT CURRENT_TIMESTAMP NOT NULL');
}
}