<?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 Version20210309085225 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 cal_booking ADD discount INT DEFAULT NULL, ADD discount_code VARCHAR(255) DEFAULT NULL, ADD payment_status VARCHAR(50) DEFAULT NULL, ADD payment_stripe_id VARCHAR(100) DEFAULT NULL');
$this->addSql('ALTER TABLE cal_user ADD stripe_id VARCHAR(255) DEFAULT NULL');
}
public function down(Schema $schema) : void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE cal_booking DROP discount, DROP discount_code, DROP payment_status, DROP payment_stripe_id');
$this->addSql('ALTER TABLE cal_user DROP stripe_id');
}
}