<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
final class Version20260921160000 extends AbstractMigration
{
public function getDescription(): string
{
return 'Add monthly salary and hourly wage to user';
}
public function up(Schema $schema): void
{
$this->addSql('ALTER TABLE user ADD monthly_salary NUMERIC(11, 2) DEFAULT NULL, ADD hourly_wage NUMERIC(11, 2) DEFAULT NULL');
}
public function down(Schema $schema): void
{
$this->addSql('ALTER TABLE user DROP monthly_salary, DROP hourly_wage');
}
}