<?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 Version20220906103330 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('CREATE TABLE prospect_mail_log (id INT AUTO_INCREMENT NOT NULL, prospect_mail_id INT NOT NULL, date_created DATETIME NOT NULL, is_send TINYINT(1) NOT NULL, INDEX IDX_12591D72B3B7FD5 (prospect_mail_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('ALTER TABLE prospect_mail_log ADD CONSTRAINT FK_12591D72B3B7FD5 FOREIGN KEY (prospect_mail_id) REFERENCES prospect_mail (id)');
$this->addSql('ALTER TABLE invoice_status ADD color VARCHAR(50) DEFAULT NULL');
$this->addSql('ALTER TABLE quote_status ADD color VARCHAR(50) DEFAULT NULL');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('DROP TABLE prospect_mail_log');
$this->addSql('ALTER TABLE invoice_status DROP color');
$this->addSql('ALTER TABLE quote_status DROP color');
}
}