36 lines
1.1 KiB
PHP
36 lines
1.1 KiB
PHP
|
|
<?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 Version20260408194313 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 echeancier ADD stripe_sepa_last4 VARCHAR(4) DEFAULT NULL');
|
||
|
|
$this->addSql('ALTER TABLE echeancier ADD stripe_sepa_bank_name VARCHAR(100) DEFAULT NULL');
|
||
|
|
$this->addSql('ALTER TABLE echeancier ADD stripe_sepa_country VARCHAR(2) DEFAULT NULL');
|
||
|
|
}
|
||
|
|
|
||
|
|
public function down(Schema $schema): void
|
||
|
|
{
|
||
|
|
// this down() migration is auto-generated, please modify it to your needs
|
||
|
|
$this->addSql('ALTER TABLE echeancier DROP stripe_sepa_last4');
|
||
|
|
$this->addSql('ALTER TABLE echeancier DROP stripe_sepa_bank_name');
|
||
|
|
$this->addSql('ALTER TABLE echeancier DROP stripe_sepa_country');
|
||
|
|
}
|
||
|
|
}
|