<?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 Version20240312161413 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 mode DROP img');
$this->addSql('ALTER TABLE step DROP img');
$this->addSql('ALTER TABLE step_field_answer DROP img');
$this->addSql('ALTER TABLE survey DROP sub_title, DROP img');
$this->addSql('ALTER TABLE survey_step_field DROP part');
$this->addSql('ALTER TABLE user_file_person CHANGE revenue_range revenue_range VARCHAR(50) DEFAULT NULL');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE mode ADD img VARCHAR(255) DEFAULT NULL');
$this->addSql('ALTER TABLE step ADD img VARCHAR(255) DEFAULT NULL');
$this->addSql('ALTER TABLE step_field_answer ADD img VARCHAR(255) DEFAULT NULL');
$this->addSql('ALTER TABLE survey ADD sub_title VARCHAR(255) DEFAULT NULL, ADD img VARCHAR(255) DEFAULT NULL');
$this->addSql('ALTER TABLE survey_step_field ADD part INT DEFAULT 1 NOT NULL');
$this->addSql('ALTER TABLE user_file_person CHANGE revenue_range revenue_range VARCHAR(10) DEFAULT NULL');
}
}