Migration to change instances of gender neuter to both

This commit is contained in:
Julie Lenaerts 2023-11-21 08:13:46 +01:00
parent cbaeb3d7e8
commit af8e02f76b

View File

@ -0,0 +1,28 @@
<?php
declare(strict_types=1);
namespace Chill\Migrations\Person;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Change gender instances of 'neuter' to 'both'
*/
final class Version20231121070151 extends AbstractMigration
{
public function getDescription(): string
{
return 'Change gender instances of "neuter" to "both"';
}
public function up(Schema $schema): void
{
$this->addSql('UPDATE chill_person_person SET gender = "both" WHERE gender = "neuter"');
}
public function down(Schema $schema): void
{
}
}