<?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 Version20220708074728 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 form_contact ADD type_consultation VARCHAR(255) NOT NULL AFTER id');
$this->addSql('ALTER TABLE form_contact ADD type_person VARCHAR(255) NOT NULL AFTER type_consultation');
$this->addSql('ALTER TABLE form_contact ADD document_type VARCHAR(255) NOT NULL AFTER type_person');
$this->addSql('ALTER TABLE form_contact ADD document_number VARCHAR(255) NOT NULL AFTER document_type');
$this->addSql('ALTER TABLE form_contact ADD company VARCHAR(255) NOT NULL AFTER document_number');
$this->addSql('ALTER TABLE form_contact ADD department VARCHAR(255) DEFAULT NULL AFTER name');
$this->addSql('ALTER TABLE form_contact CHANGE email email VARCHAR(255) NOT NULL AFTER phone');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE form_contact DROP type_consultation, DROP type_person, DROP document_type, DROP document_number, DROP company, DROP department');
}
}