<?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 Version20190424162633 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->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.');
$this->addSql('ALTER TABLE std_orders ADD shipping_address_telephone INT DEFAULT NULL COMMENT \'Shipping address Telephone\', ADD shipping_address_nif INT DEFAULT NULL COMMENT \'Shipping address NIF\', ADD shipping_address_comments VARCHAR(300) DEFAULT NULL COMMENT \'Shipping address Comments\', ADD billing_address_telephone INT DEFAULT NULL COMMENT \'Billing address Telephone\', ADD billing_address_nif INT DEFAULT NULL COMMENT \'Billing address NIF\', ADD billing_address_comments VARCHAR(300) DEFAULT NULL COMMENT \'Billing address Comments\', DROP telephone, DROP nif');
}
public function down(Schema $schema) : void
{
// this down() migration is auto-generated, please modify it to your needs
$this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.');
$this->addSql('ALTER TABLE std_orders ADD telephone INT DEFAULT NULL COMMENT \'Telephone\', ADD nif INT DEFAULT NULL COMMENT \'NIF\', DROP shipping_address_telephone, DROP shipping_address_nif, DROP shipping_address_comments, DROP billing_address_telephone, DROP billing_address_nif, DROP billing_address_comments');
}
}