<?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 Version20210311161045 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_booking DROP FOREIGN KEY FK_D7A58FE14C3A3BB');
$this->addSql('ALTER TABLE cal_booking ADD CONSTRAINT FK_D7A58FE14C3A3BB FOREIGN KEY (payment_id) REFERENCES cal_payment (id)');
$this->addSql('ALTER TABLE cal_booking_room DROP FOREIGN KEY FK_9EFEA5D14C119B1');
$this->addSql('ALTER TABLE cal_booking_room ADD CONSTRAINT FK_9EFEA5D14C119B1 FOREIGN KEY (first_rent_payment_id) REFERENCES cal_payment (id)');
}
public function down(Schema $schema) : void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE cal_booking DROP FOREIGN KEY FK_D7A58FE14C3A3BB');
$this->addSql('ALTER TABLE cal_booking ADD CONSTRAINT FK_D7A58FE14C3A3BB FOREIGN KEY (payment_id) REFERENCES cal_booking_document (id)');
$this->addSql('ALTER TABLE cal_booking_room DROP FOREIGN KEY FK_9EFEA5D14C119B1');
$this->addSql('ALTER TABLE cal_booking_room ADD CONSTRAINT FK_9EFEA5D14C119B1 FOREIGN KEY (first_rent_payment_id) REFERENCES cal_booking_document (id)');
}
}