<?php
declare(strict_types=1);
namespace CoreMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20230512095435 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('DROP INDEX tag ON cash_register_bundle__payment_method');
$this->addSql('ALTER TABLE cash_register_bundle__payment_method ADD movement_creation TINYINT(1) DEFAULT 0 NOT NULL, ADD account_number VARCHAR(32) DEFAULT NULL, DROP tag');
$this->addSql('CREATE INDEX movement_creation ON cash_register_bundle__payment_method (movement_creation)');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('DROP INDEX movement_creation ON cash_register_bundle__payment_method');
$this->addSql('ALTER TABLE cash_register_bundle__payment_method ADD tag VARCHAR(128) DEFAULT NULL, DROP movement_creation, DROP account_number');
$this->addSql('CREATE INDEX tag ON cash_register_bundle__payment_method (tag)');
}
}