<?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 Version20241102101138 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$this->addSql('CREATE TABLE v2_bonus (id UUID NOT NULL, reporting_period_id UUID NOT NULL, bonus_reason_id UUID NULL, date_assigned TIMESTAMP(0) WITHOUT TIME ZONE NOT NULL, ins_user_id INT NOT NULL, value NUMERIC(50, 2) NOT NULL, description VARCHAR(250) NOT NULL, created_by JSON NOT NULL, cancelled_by JSON DEFAULT NULL, cancelled_at TIMESTAMP(0) WITHOUT TIME ZONE DEFAULT NULL, created_at TIMESTAMP(0) WITHOUT TIME ZONE NOT NULL, updated_at TIMESTAMP(0) WITHOUT TIME ZONE NOT NULL, PRIMARY KEY(id))');
$this->addSql('CREATE INDEX IDX_9483C1402832EB1C ON v2_bonus (reporting_period_id)');
$this->addSql('CREATE INDEX IDX_9483C1403FB3044B ON v2_bonus (bonus_reason_id)');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('DROP TABLE v2_bonus');
}
}