<?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 Version20230912115506 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 about_area CHANGE image image VARCHAR(255) DEFAULT NULL');
$this->addSql('ALTER TABLE gallery_image CHANGE category_id category_id INT DEFAULT NULL');
$this->addSql('ALTER TABLE hobby_single_area CHANGE hobby_single_id hobby_single_id INT DEFAULT NULL');
$this->addSql('ALTER TABLE home_main_slider_image ADD image_mobile VARCHAR(255) NOT NULL, CHANGE home_main_slider_id home_main_slider_id INT DEFAULT NULL, CHANGE updated_at updated_at DATETIME NOT NULL COMMENT \'(DC2Type:datetime_immutable)\'');
$this->addSql('ALTER TABLE privacy ADD cover_image VARCHAR(255) NOT NULL');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE about_area CHANGE image image VARCHAR(255) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`');
$this->addSql('ALTER TABLE gallery_image CHANGE category_id category_id INT NOT NULL');
$this->addSql('ALTER TABLE hobby_single_area CHANGE hobby_single_id hobby_single_id INT NOT NULL');
$this->addSql('ALTER TABLE home_main_slider_image DROP image_mobile, CHANGE home_main_slider_id home_main_slider_id INT NOT NULL, CHANGE updated_at updated_at DATETIME DEFAULT NULL');
$this->addSql('ALTER TABLE privacy DROP cover_image');
}
}