migrations/Version20220901063708.php line 1

Open in your IDE?
  1. <?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 Version20220901063708 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 (id INT AUTO_INCREMENT NOT NULL, prospect_id INT NOT NULL, content LONGTEXT NOT NULL, status VARCHAR(255) NOT NULL, date_created DATETIME NOT NULL, date_modified DATETIME NOT NULL, date_send DATETIME NOT NULL, mail VARCHAR(255) NOT NULL, object VARCHAR(255) NOT NULL, is_send TINYINT(1) NOT NULL, INDEX IDX_2BC726E3D182060A (prospect_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
            $this->addSql('ALTER TABLE prospect_mail ADD CONSTRAINT FK_2BC726E3D182060A FOREIGN KEY (prospect_id) REFERENCES prospect (id)');
        }
    
        public function down(Schema $schema): void
        {
            // this down() migration is auto-generated, please modify it to your needs
            $this->addSql('DROP TABLE prospect_mail');
        }
    }