<?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 Version20220619230711 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('ALTER TABLE report_card ADD report_card_average DOUBLE PRECISION DEFAULT NULL, ADD level_average DOUBLE PRECISION DEFAULT NULL, ADD smallest_average DOUBLE PRECISION DEFAULT NULL, ADD strongest_average DOUBLE PRECISION DEFAULT NULL');
$this->addSql('ALTER TABLE school_absence_and_delay CHANGE situation situation VARCHAR(255) NOT NULL, CHANGE duration_type duration_type VARCHAR(255) NOT NULL');
$this->addSql('ALTER TABLE school_report_card ADD level_rank VARCHAR(60) DEFAULT NULL');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE report_card DROP report_card_average, DROP level_average, DROP smallest_average, DROP strongest_average');
$this->addSql('ALTER TABLE school_absence_and_delay CHANGE situation situation VARCHAR(255) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE duration_type duration_type VARCHAR(255) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`');
$this->addSql('ALTER TABLE school_report_card DROP level_rank');
}
}