<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20220523135719 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('CREATE UNIQUE INDEX UNIQ_FBD8E0F8989D9B62 ON job (slug)');
$this->addSql('ALTER TABLE location ADD address VARCHAR(255) DEFAULT NULL');
$this->addSql('ALTER TABLE news ADD cover_image_path VARCHAR(255) DEFAULT NULL, ADD slug VARCHAR(255) NOT NULL');
$this->addSql('CREATE UNIQUE INDEX UNIQ_1DD39950989D9B62 ON news (slug)');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('DROP INDEX UNIQ_FBD8E0F8989D9B62 ON job');
$this->addSql('ALTER TABLE location DROP address');
$this->addSql('DROP INDEX UNIQ_1DD39950989D9B62 ON news');
$this->addSql('ALTER TABLE news DROP cover_image_path, DROP slug');
}
}