<?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 Version20201015035021 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('SET FOREIGN_KEY_CHECKS = 0');
$this->addSql('TRUNCATE TABLE delivery_schedule');
$this->addSql('TRUNCATE TABLE deliveryZones');
$this->addSql('SET FOREIGN_KEY_CHECKS = 1');
$this->addSql(file_get_contents(__DIR__ . '/../../zones3.sql'));
$this->addSql(file_get_contents(__DIR__ . '/../../schedules3.sql'));
}
public function down(Schema $schema) : void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('SET FOREIGN_KEY_CHECKS = 0');
$this->addSql('TRUNCATE TABLE delivery_schedule');
$this->addSql('TRUNCATE TABLE deliveryZones');
$this->addSql('SET FOREIGN_KEY_CHECKS = 1');
}
}