<?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 Version20250528185244 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 registration_student_contact (id INT AUTO_INCREMENT NOT NULL, registration_student_registration_id INT DEFAULT NULL, establishment_id INT DEFAULT NULL, phone VARCHAR(30) DEFAULT NULL, name VARCHAR(60) DEFAULT NULL, subject VARCHAR(128) DEFAULT NULL, message LONGTEXT DEFAULT NULL, created_at DATETIME NOT NULL COMMENT \'(DC2Type:datetime_immutable)\', updated_at DATETIME NOT NULL COMMENT \'(DC2Type:datetime_immutable)\', created_by INT NOT NULL, updated_by INT NOT NULL, INDEX IDX_2416FDF6B0396129 (registration_student_registration_id), INDEX IDX_2416FDF68565851 (establishment_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('ALTER TABLE registration_student_contact ADD CONSTRAINT FK_2416FDF6B0396129 FOREIGN KEY (registration_student_registration_id) REFERENCES registration_student_registration (id)');
$this->addSql('ALTER TABLE registration_student_contact ADD CONSTRAINT FK_2416FDF68565851 FOREIGN KEY (establishment_id) REFERENCES establishment (id)');
$this->addSql('ALTER TABLE mobile_parent_app_account ADD device_token VARCHAR(255) DEFAULT NULL');
$this->addSql('ALTER TABLE registration_diet ADD is_actived TINYINT(1) NOT NULL');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('DROP TABLE registration_student_contact');
$this->addSql('ALTER TABLE mobile_parent_app_account DROP device_token');
$this->addSql('ALTER TABLE registration_diet DROP is_actived');
}
}