<?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 Version20211211210436 extends AbstractMigration
{
public function getDescription(): string
{
return 'Dropping pck_charges table';
}
public function up(Schema $schema): void
{
$this->addSql("DROP TABLE IF EXISTS pck_charges_backup");
$this->addSql("CREATE TABLE pck_charges_backup AS SELECT * FROM pck_charges");
$this->addSql("DROP TABLE pck_charges");
}
public function down(Schema $schema): void
{
$this->addSql("DROP TABLE IF EXISTS pck_charges");
$this->addSql("CREATE TABLE pck_charges AS SELECT * FROM pck_charges_backup");
$this->addSql("DROP TABLE pck_charges_backup");
}
}