<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
final class Version20221205093127 extends AbstractMigration
{
public function getDescription(): string
{
return 'Insert two new neighborhoods';
}
public function up(Schema $schema): void
{
$this->addSql("INSERT INTO public.neighborhood VALUES (nextval('\"public\".neighborhood_id_seq'::regclass), (select id from city where name = 'Casablanca'), 'Tamaris')");
$this->addSql("INSERT INTO public.neighborhood VALUES (nextval('\"public\".neighborhood_id_seq'::regclass), (select id from city where name = 'Casablanca'), 'Dar Bouazza')");
}
public function down(Schema $schema): void
{
}
}