<?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 Version20240208085224 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 `user_cards` ADD `card_name` VARCHAR(255) NOT NULL AFTER `id`;");
$this->addSql("ALTER TABLE `user_cards` ADD `exp_month` INT NULL AFTER `last_4_digits`, ADD `exp_year` INT NULL AFTER `exp_month`;");
$this->addSql("ALTER TABLE `user_cards` CHANGE `is_used` `is_default` ENUM('Yes','No') CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT 'No';");
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
}
}