<?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 Version20221020131316 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 intrari CHANGE idcategoricheltuieli idCategoriiCheltuieli INT NOT NULL');
$this->addSql('ALTER TABLE intrari ADD CONSTRAINT FK_1CAAF5E51E8DACF2 FOREIGN KEY (idCategoriiCheltuieli) REFERENCES categoriicheltuieli (id)');
$this->addSql('CREATE INDEX IDX_1CAAF5E51E8DACF2 ON intrari (idCategoriiCheltuieli)');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE intrari CHANGE idcategoriicheltuieli idCategoriCheltuieli INT NOT NULL');
$this->addSql('ALTER TABLE intrari ADD CONSTRAINT FK_1CAAF5E5B5EAC27B FOREIGN KEY (idCategoriCheltuieli) REFERENCES categoriicheltuieli (id)');
$this->addSql('CREATE INDEX IDX_1CAAF5E5B5EAC27B ON intrari (idCategoriCheltuieli)');
}
}