migrations/Version20220826112137.php line 1
<?phpdeclare(strict_types=1);namespace DoctrineMigrations;use Doctrine\DBAL\Schema\Schema;use Doctrine\Migrations\AbstractMigration;/*** Auto-generated Migration: Please modify to your needs!*/final class Version20220826112137 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('update ledger__account set type=\'main\' where type is null');$this->addSql('DROP INDEX uniq_586eb2237e3c61f9');$this->addSql('ALTER TABLE ledger__account ALTER type SET NOT NULL');$this->addSql('CREATE INDEX IDX_586EB2237E3C61F9 ON ledger__account (owner_id)');}public function down(Schema $schema): void{// this down() migration is auto-generated, please modify it to your needs$this->addSql('DROP INDEX IDX_586EB2237E3C61F9');$this->addSql('ALTER TABLE ledger__account ALTER type DROP NOT NULL');$this->addSql('CREATE UNIQUE INDEX uniq_586eb2237e3c61f9 ON ledger__account (owner_id)');}}