<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\Migrations\AbstractMigration;
use Doctrine\DBAL\Schema\Schema;
/**
* Auto-generated Migration: Please modify to your needs!
*/
class Version20170111102322 extends AbstractMigration
{
/**
* @param Schema $schema
*/
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 coin_condition ADD sort_value DOUBLE PRECISION NOT NULL DEFAULT 0');
$this->addSql('ALTER TABLE container_sherd ADD sort_value DOUBLE PRECISION NOT NULL DEFAULT 0');
$this->addSql('ALTER TABLE container_form ADD sort_value DOUBLE PRECISION NOT NULL DEFAULT 0');
$this->addSql('ALTER TABLE country ADD sort_value DOUBLE PRECISION NOT NULL DEFAULT 0');
$this->addSql('ALTER TABLE archaeology_period ADD sort_value DOUBLE PRECISION NOT NULL DEFAULT 0');
$this->addSql('ALTER TABLE archaeology_context_nature ADD sort_value DOUBLE PRECISION NOT NULL DEFAULT 0');
$this->addSql('ALTER TABLE rating ADD sort_value DOUBLE PRECISION NOT NULL DEFAULT 0');
$this->addSql('ALTER TABLE find_spot_location_detail ADD sort_value DOUBLE PRECISION NOT NULL DEFAULT 0');
$this->addSql('ALTER TABLE reference_type ADD sort_value DOUBLE PRECISION NOT NULL DEFAULT 0');
$this->addSql('ALTER TABLE discovery_method ADD sort_value DOUBLE PRECISION NOT NULL DEFAULT 0');
$this->addSql('ALTER TABLE discovery_land_use ADD sort_value DOUBLE PRECISION NOT NULL DEFAULT 0');
$this->addSql('ALTER TABLE archaeology_recovery_method ADD sort_value DOUBLE PRECISION NOT NULL DEFAULT 0');
$this->addSql('ALTER TABLE archaeology_site_context ADD sort_value DOUBLE PRECISION NOT NULL DEFAULT 0');
$this->addSql('ALTER TABLE archaeology_site_context_detail ADD sort_value DOUBLE PRECISION NOT NULL DEFAULT 0');
$this->addSql('ALTER TABLE hoard_type ADD sort_value DOUBLE PRECISION NOT NULL DEFAULT 0');
$this->addSql('ALTER TABLE material ADD sort_value DOUBLE PRECISION NOT NULL DEFAULT 0');
$this->addSql('ALTER TABLE period ADD sort_value DOUBLE PRECISION NOT NULL DEFAULT 0');
$this->addSql('ALTER TABLE denomination ADD sort_value DOUBLE PRECISION NOT NULL DEFAULT 0');
$this->addSql('ALTER TABLE person ADD sort_value DOUBLE PRECISION NOT NULL DEFAULT 0');
$this->addSql('ALTER TABLE reign ADD sort_value DOUBLE PRECISION NOT NULL DEFAULT 0');
$this->addSql('ALTER TABLE mint ADD sort_value DOUBLE PRECISION NOT NULL DEFAULT 0');
}
/**
* @param Schema $schema
*/
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 coin_condition DROP sort_value');
$this->addSql('ALTER TABLE container_sherd DROP sort_value');
$this->addSql('ALTER TABLE container_form DROP sort_value');
$this->addSql('ALTER TABLE country DROP sort_value');
$this->addSql('ALTER TABLE archaeology_period DROP sort_value');
$this->addSql('ALTER TABLE archaeology_context_nature DROP sort_value');
$this->addSql('ALTER TABLE rating DROP sort_value');
$this->addSql('ALTER TABLE find_spot_location_detail DROP sort_value');
$this->addSql('ALTER TABLE reference_type DROP sort_value');
$this->addSql('ALTER TABLE discovery_method DROP sort_value');
$this->addSql('ALTER TABLE discovery_land_use DROP sort_value');
$this->addSql('ALTER TABLE archaeology_recovery_method DROP sort_value');
$this->addSql('ALTER TABLE archaeology_site_context DROP sort_value');
$this->addSql('ALTER TABLE archaeology_site_context_detail DROP sort_value');
$this->addSql('ALTER TABLE hoard_type DROP sort_value');
$this->addSql('ALTER TABLE material DROP sort_value');
$this->addSql('ALTER TABLE period DROP sort_value');
$this->addSql('ALTER TABLE denomination DROP sort_value');
$this->addSql('ALTER TABLE person DROP sort_value');
$this->addSql('ALTER TABLE reign DROP sort_value');
$this->addSql('ALTER TABLE mint DROP sort_value');
}
}