<?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 Version20230905075928 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 oscpv_contracts DROP FOREIGN KEY FK_71C9DCCBCBC3E50C');
$this->addSql('ALTER TABLE oscpv_contracts DROP FOREIGN KEY FK_71C9DCCBF64382E3');
$this->addSql('ALTER TABLE oscpv_contracts ADD CONSTRAINT FK_71C9DCCBCBC3E50C FOREIGN KEY (car_brand_id) REFERENCES `list_car_brands` (id)');
$this->addSql('ALTER TABLE oscpv_contracts ADD CONSTRAINT FK_71C9DCCBF64382E3 FOREIGN KEY (car_model_id) REFERENCES `list_car_models` (id)');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE `oscpv_contracts` DROP FOREIGN KEY FK_71C9DCCBCBC3E50C');
$this->addSql('ALTER TABLE `oscpv_contracts` DROP FOREIGN KEY FK_71C9DCCBF64382E3');
$this->addSql('ALTER TABLE `oscpv_contracts` ADD CONSTRAINT FK_71C9DCCBCBC3E50C FOREIGN KEY (car_brand_id) REFERENCES oscpv_list_car_brands (id)');
$this->addSql('ALTER TABLE `oscpv_contracts` ADD CONSTRAINT FK_71C9DCCBF64382E3 FOREIGN KEY (car_model_id) REFERENCES oscpv_list_car_models (id)');
}
}