<?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 Version20220822095838 extends AbstractMigration
{
public function getDescription(): string
{
return 'Correct misspelling of the word latitude in various field names.';
}
public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE ancient_place CHANGE lattitude latitude DOUBLE PRECISION DEFAULT NULL');
$this->addSql('ALTER TABLE hoard CHANGE find_spot_lattitude find_spot_latitude DOUBLE PRECISION DEFAULT NULL');
$this->addSql('ALTER TABLE hoard_audit CHANGE find_spot_lattitude find_spot_latitude DOUBLE PRECISION DEFAULT NULL');
$this->addSql('ALTER TABLE mint CHANGE lattitude latitude DOUBLE PRECISION DEFAULT NULL');
$this->addSql('ALTER TABLE mint_audit CHANGE lattitude latitude DOUBLE PRECISION DEFAULT NULL');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE ancient_place CHANGE latitude lattitude DOUBLE PRECISION DEFAULT NULL');
$this->addSql('ALTER TABLE hoard CHANGE find_spot_latitude find_spot_lattitude DOUBLE PRECISION DEFAULT NULL');
$this->addSql('ALTER TABLE hoard_audit CHANGE find_spot_latitude find_spot_lattitude DOUBLE PRECISION DEFAULT NULL');
$this->addSql('ALTER TABLE mint CHANGE latitude lattitude DOUBLE PRECISION DEFAULT NULL');
$this->addSql('ALTER TABLE mint_audit CHANGE latitude lattitude DOUBLE PRECISION DEFAULT NULL');
}
}