<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
final class Version20220613230001 extends AbstractMigration
{
public function up(Schema $schema): void
{
$this->addSql('ALTER TABLE invoice ADD shipping_method INT DEFAULT NULL, ADD shipping_company INT DEFAULT NULL, ADD shipping_insurance TINYINT(1) DEFAULT NULL, ADD shipping_country VARCHAR(255) DEFAULT NULL, ADD shipping_address VARCHAR(255) DEFAULT NULL, ADD shipping_postal_code VARCHAR(255) DEFAULT NULL');
}
public function down(Schema $schema): void
{
$this->addSql('ALTER TABLE invoice DROP shipping_method, DROP shipping_company, DROP shipping_insurance, DROP shipping_country, DROP shipping_address, DROP shipping_postal_code');
}
}