migrations/Version20250605092300.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 Version20250605092300 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(<<<'SQL'CREATE TABLE pre_consultation_message (id INT AUTO_INCREMENT NOT NULL,client_id INT UNSIGNED DEFAULT NULL,user_pseudo_id INT DEFAULT NULL,photos LONGTEXT DEFAULT NULL COMMENT '(DC2Type:json)',subject VARCHAR(255) NOT NULL,message LONGTEXT NOT NULL,created_at DATETIME NOT NULL,INDEX IDX_E9483D3819EB6921 (client_id),INDEX IDX_E9483D3820031926 (user_pseudo_id),PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDBSQL);$this->addSql(<<<'SQL'ALTER TABLE pre_consultation_message ADD CONSTRAINT FK_E9483D3819EB6921 FOREIGN KEY (client_id) REFERENCES client (id_client)SQL);$this->addSql(<<<'SQL'ALTER TABLE pre_consultation_message ADD CONSTRAINT FK_E9483D3820031926 FOREIGN KEY (user_pseudo_id) REFERENCES user_pseudo (user_pseudo_id)SQL);}public function down(Schema $schema): void{// this down() migration is auto-generated, please modify it to your needs$this->addSql('DROP TABLE pre_consultation_message');}}