<?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 Version20230510084437 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 job_daily_routine_entry ADD background_image_id INT DEFAULT NULL, ADD background_video VARCHAR(250) DEFAULT NULL');
$this->addSql('ALTER TABLE job_daily_routine_entry ADD CONSTRAINT FK_23161BE4E6DA28AA FOREIGN KEY (background_image_id) REFERENCES media__media (id)');
$this->addSql('CREATE INDEX IDX_23161BE4E6DA28AA ON job_daily_routine_entry (background_image_id)');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE job_daily_routine_entry DROP FOREIGN KEY FK_23161BE4E6DA28AA');
$this->addSql('DROP INDEX IDX_23161BE4E6DA28AA ON job_daily_routine_entry');
$this->addSql('ALTER TABLE job_daily_routine_entry DROP background_image_id, DROP background_video');
}
}