<?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 Version20200728122622 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 facturation_address RENAME TO billing_address');
$this->addSql('ALTER TABLE billing_address RENAME INDEX idx_46ea8399612cddb7 TO IDX_6660E456612CDDB7');
$this->addSql('ALTER TABLE billing_address RENAME INDEX idx_46ea8399a455accf TO IDX_6660E456A455ACCF');
}
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 billing_address RENAME TO facturation_address');
$this->addSql('ALTER TABLE billing_address RENAME INDEX idx_6660e456a455accf TO IDX_46EA8399A455ACCF');
$this->addSql('ALTER TABLE billing_address RENAME INDEX idx_6660e456612cddb7 TO IDX_46EA8399612CDDB7');
}
}