<?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 Version20220505165933 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 raport_ads_screenshot ADD CONSTRAINT FK_13C3ECA5D4A75161 FOREIGN KEY (raport_ads_id) REFERENCES raport_ads (id)');
$this->addSql('CREATE INDEX IDX_13C3ECA5D4A75161 ON raport_ads_screenshot (raport_ads_id)');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE raport_ads_screenshot DROP FOREIGN KEY FK_13C3ECA5D4A75161');
$this->addSql('ALTER TABLE raport_ads_screenshot DROP FOREIGN KEY FK_13C3ECA5D4A75161');
$this->addSql('DROP INDEX idx_13c3eca5d4a75161 ON raport_ads_screenshot');
$this->addSql('CREATE INDEX IDX_D73A1FB2D4A75161 ON raport_ads_screenshot (raport_ads_id)');
$this->addSql('ALTER TABLE raport_ads_screenshot ADD CONSTRAINT FK_13C3ECA5D4A75161 FOREIGN KEY (raport_ads_id) REFERENCES raport_ads (id)');
}
}