<?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 Version20241122144817 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
$this->addSql('ALTER TABLE camper_van ADD model VARCHAR(255) DEFAULT NULL');
$this->addSql('ALTER TABLE troubleshooting_request CHANGE status status VARCHAR(255) DEFAULT NULL, CHANGE result result VARCHAR(255) DEFAULT NULL');
$this->addSql('ALTER TABLE troubleshooting_request CHANGE status status INT DEFAULT NULL');
$this->addSql('ALTER TABLE person ADD ai_off_topic_flag_counter INT DEFAULT NULL, ADD ai_inappropriate_flag_counter INT DEFAULT NULL');
}
public function down(Schema $schema): void
{
$this->addSql('ALTER TABLE camper_van DROP model');
$this->addSql('ALTER TABLE troubleshooting_request CHANGE status status VARCHAR(255) NOT NULL, CHANGE result result VARCHAR(255) NOT NULL');
$this->addSql('ALTER TABLE troubleshooting_request CHANGE status status VARCHAR(255) DEFAULT NULL');
$this->addSql('ALTER TABLE person DROP ai_off_topic_flag_counter, DROP ai_inappropriate_flag_counter');
}
}