<?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 Version20230126174214 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 patient_delete_reason ADD office_id INT NOT NULL');
$this->addSql('ALTER TABLE patient_delete_reason ADD CONSTRAINT FK_B7EBE49AFFA0C224 FOREIGN KEY (office_id) REFERENCES `office` (id)');
$this->addSql('CREATE INDEX IDX_B7EBE49AFFA0C224 ON patient_delete_reason (office_id)');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE `patient_delete_reason` DROP FOREIGN KEY FK_B7EBE49AFFA0C224');
$this->addSql('DROP INDEX IDX_B7EBE49AFFA0C224 ON `patient_delete_reason`');
$this->addSql('ALTER TABLE `patient_delete_reason` DROP office_id');
}
}