<?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 Version20210819153406 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 cal_maintenance_appointment ADD quotation_id INT DEFAULT NULL');
$this->addSql('ALTER TABLE cal_maintenance_appointment ADD CONSTRAINT FK_FB1E4445B4EA4E60 FOREIGN KEY (quotation_id) REFERENCES cal_maintenance_quotation (id)');
$this->addSql('CREATE INDEX IDX_FB1E4445B4EA4E60 ON cal_maintenance_appointment (quotation_id)');
}
public function down(Schema $schema) : void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE cal_maintenance_appointment DROP FOREIGN KEY FK_FB1E4445B4EA4E60');
$this->addSql('DROP INDEX IDX_FB1E4445B4EA4E60 ON cal_maintenance_appointment');
$this->addSql('ALTER TABLE cal_maintenance_appointment DROP quotation_id');
}
}