<?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 Version20220628143714 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 email_template_replacement (id INT AUTO_INCREMENT NOT NULL, placeholder VARCHAR(255) NOT NULL, value_field VARCHAR(255) NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
// $this->addSql('ALTER TABLE category DROP is_active, DROP is_required');
// $this->addSql('ALTER TABLE quiz DROP next_round_quiz_slug');
// $this->addSql('DROP INDEX IF EXISTS school__slug ON school');
// $this->addSql('DROP INDEX IF EXISTS search_idx ON school');
// $this->addSql('DROP INDEX IF EXISTS email_address ON student');
// $this->addSql('DROP INDEX IF EXISTS student__phone_no ON student');
// $this->addSql('ALTER TABLE student DROP level_of_teaching');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
// $this->addSql('DROP TABLE email_template_replacement');
// $this->addSql('ALTER TABLE category ADD is_active TINYINT(1) DEFAULT NULL, ADD is_required TINYINT(1) DEFAULT NULL');
// $this->addSql('ALTER TABLE quiz ADD next_round_quiz_slug VARCHAR(255) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`');
// $this->addSql('CREATE INDEX school__slug ON school (slug)');
// $this->addSql('CREATE INDEX search_idx ON school (name, city, state)');
// $this->addSql('ALTER TABLE student ADD level_of_teaching VARCHAR(255) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`');
// $this->addSql('CREATE INDEX email_address ON student (email_address)');
// $this->addSql('CREATE INDEX student__phone_no ON student (phone_no)');
}
}