hesabixCore/hesabixCore/migrations/Version20250826214359.php
2025-08-28 11:32:50 +00:00

42 lines
1.1 KiB
PHP

<?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 Version20250826214359 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(<<<'SQL'
ALTER TABLE import_workflow ADD CONSTRAINT FK_CC6A26EC40C1FEA7 FOREIGN KEY (year_id) REFERENCES year (id)
SQL);
$this->addSql(<<<'SQL'
CREATE INDEX IDX_CC6A26EC40C1FEA7 ON import_workflow (year_id)
SQL);
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql(<<<'SQL'
ALTER TABLE import_workflow DROP FOREIGN KEY FK_CC6A26EC40C1FEA7
SQL);
$this->addSql(<<<'SQL'
DROP INDEX IDX_CC6A26EC40C1FEA7 ON import_workflow
SQL);
}
}