migrations/Version20220704190409.php line 1
<?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 Version20220704190409 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 ledger__account ADD type VARCHAR(255)');
$this->addSql('ALTER TABLE ledger__transaction ALTER comment DROP NOT NULL');
$this->addSql('ALTER INDEX idx_1ac1ecce8d9f6d38 RENAME TO IDX_E3D619618D9F6D38');
$this->addSql('ALTER INDEX idx_1ac1ecce4584665a RENAME TO IDX_E3D619614584665A');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE ledger__account DROP type');
$this->addSql('ALTER TABLE ledger__transaction ALTER comment SET NOT NULL');
$this->addSql('ALTER INDEX idx_e3d619614584665a RENAME TO idx_1ac1ecce4584665a');
$this->addSql('ALTER INDEX idx_e3d619618d9f6d38 RENAME TO idx_1ac1ecce8d9f6d38');
}
}