<?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 Version20240709074722 extends AbstractMigration
{
public function getDescription(): string
{
return 'Adds initial data to dict_road_occupation_type table';
}
public function up(Schema $schema): void
{
$this->addSql("
INSERT INTO dict_road_occupation_type (id, name, code) VALUES
(gen_random_uuid(), 'Roboty', 'roboty'),
(gen_random_uuid(), 'Roboty związane z bud. inf. telekom.', 'roboty_telekom')
");
}
public function down(Schema $schema): void
{
$this->addSql("
DELETE FROM dict_road_occupation_type
WHERE name IN ('Roboty', 'Roboty związane z bud. inf. telekom.')
");
}
}