<?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 Version20220831090000 extends AbstractMigration
{
public function getDescription(): string
{
return 'Fix the creation_date of mints if it`s invalid: 0000-00-00 00:00:00';
}
public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$this->addSql('UPDATE mint SET `creation_date` = "1970-01-02" WHERE CAST(creation_date AS CHAR(20)) = "0000-00-00 00:00:00"');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
}
}