<?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 Version20230330042217 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('DROP TABLE tax_inputs');
$this->addSql('DROP TABLE tax_year');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('CREATE TABLE tax_inputs (id INT AUTO_INCREMENT NOT NULL, employment_income DOUBLE PRECISION DEFAULT NULL, tax_deducted_at_source DOUBLE PRECISION DEFAULT NULL, national_insurance_nic_table VARCHAR(255) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, national_insurance_earnings_at_lel DOUBLE PRECISION DEFAULT NULL, national_insurance_earnings_above_lelup_to_pt DOUBLE PRECISION DEFAULT NULL, national_insurance_earnings_above_ptup_to_uel DOUBLE PRECISION DEFAULT NULL, national_insurance_employees_contributions_above_pt DOUBLE PRECISION DEFAULT NULL, interest_income DOUBLE PRECISION DEFAULT NULL, partnership_income DOUBLE PRECISION DEFAULT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB COMMENT = \'\' ');
$this->addSql('CREATE TABLE tax_year (id INT AUTO_INCREMENT NOT NULL, personal_allowance INT DEFAULT NULL, basic_rate INT DEFAULT NULL, tax_band1_personal_allowance INT DEFAULT NULL, tax_band2_basic_rate INT DEFAULT NULL, tax_band3_high_rate INT DEFAULT NULL, tax_band4_additional_rate INT DEFAULT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB COMMENT = \'\' ');
}
}