<?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 Version20231129155205 extends AbstractMigration
{
public function getDescription(): string
{
return 'add values to eventType and eventSubType';
}
public function up(Schema $schema): void
{
$this->addSql("INSERT INTO event_managment.event_type (id, name, code)
VALUES (1, 'POA', 'POA')");
$this->addSql("INSERT INTO event_managment.event_sub_type (id, event_type_id, name, code)
VALUES (1, 1, 'Présentiel', 'PRESENTIAL'),
(2, 1, 'A distance', 'REMOTE')");
}
public function down(Schema $schema): void
{
}
}