<?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 Version20220831082445 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('ALTER TABLE employee ADD salary_type VARCHAR(1) DEFAULT \'O\'');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('CREATE SCHEMA public');
$this->addSql('ALTER TABLE "user" DROP CONSTRAINT FK_8D93D6498C03F15C');
$this->addSql('DROP INDEX UNIQ_8D93D649E7927C74');
$this->addSql('DROP INDEX UNIQ_8D93D6498C03F15C');
$this->addSql('DROP INDEX "primary"');
$this->addSql('ALTER TABLE employee DROP salary_type');
}
}