<?php
/**
* @noinspection PhpUnused
* @noinspection PhpInternalEntityUsedInspection
*/
declare(strict_types=1);
namespace DoctrineMigrations;
use App\Validator\Constraints\Api\CoreModule\EmployeeType\AbstractEmployeeTypeIdCompound;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*
* @package API
* @internal
*/
final class Version20220504102243 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 employee type table.";
}
public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$list = '(\'' . implode('\'),(\'', AbstractEmployeeTypeIdCompound::ENABLED_CHOICES) . '\');';
$this->addSql(
"
INSERT INTO employee_type
(id)
VALUES
$list
"
);
}
}