migrations/Version20221016222641.php line 1
<?phpdeclare(strict_types=1);namespace DoctrineMigrations;use Doctrine\DBAL\Schema\Schema;use Doctrine\Migrations\AbstractMigration;/*** Auto-generated Migration: Please modify to your needs!*/final class Version20221016222641 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 messagerie (id INT AUTO_INCREMENT NOT NULL, locataire_id INT DEFAULT NULL, code VARCHAR(50) DEFAULT NULL, message VARCHAR(255) DEFAULT NULL, sent TINYINT(1) DEFAULT NULL, INDEX IDX_14E8F60CD8A38199 (locataire_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');$this->addSql('ALTER TABLE messagerie ADD CONSTRAINT FK_14E8F60CD8A38199 FOREIGN KEY (locataire_id) REFERENCES locataire (id)');}public function down(Schema $schema): void{// this down() migration is auto-generated, please modify it to your needs$this->addSql('DROP TABLE messagerie');}}