<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
final class Version20221019170036 extends AbstractMigration
{
public function getDescription(): string
{
return 'Add "notes" and "incomplete_reason" fields for the employee to fill in.';
}
public function up(Schema $schema): void
{
$this->addSql('ALTER TABLE schedule ADD notes LONGTEXT DEFAULT NULL, ADD incomplete_reason INT DEFAULT NULL');
}
public function down(Schema $schema): void
{
$this->addSql('ALTER TABLE schedule DROP notes, DROP incomplete_reason');
}
}