<?php
/**
* @noinspection PhpUnused
* @noinspection PhpInternalEntityUsedInspection
*/
declare(strict_types=1);
namespace DoctrineMigrations;
use App\Validator\Constraints\Api\SocialCounseling\CategoryType\AbstractCategoryTypeIdCompound;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20250318095460 extends AbstractMigration
{
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
}
public function getDescription(): string
{
return "- Seeding of SocialCounseling employee assistance category type table.";
}
public function up(Schema $schema): void
{
$list = '(\'' . implode('\'),(\'', AbstractCategoryTypeIdCompound::ENABLED_CHOICES) . '\');';
$this->addSql(
"
INSERT INTO sob_employee_assistance_category_type
(id)
VALUES
$list
"
);
}
}