osm-commerces/migrations/Version20250617165738.php

60 lines
1.7 KiB
PHP
Raw Normal View History

2025-06-17 19:38:44 +02:00
<?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 Version20250617165738 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(<<<'SQL'
ALTER TABLE stats_history ADD names_count INT DEFAULT NULL
SQL);
$this->addSql(<<<'SQL'
ALTER TABLE stats_history ADD opening_hours_count INT DEFAULT NULL
SQL);
$this->addSql(<<<'SQL'
ALTER TABLE stats_history ADD website_count INT DEFAULT NULL
SQL);
$this->addSql(<<<'SQL'
ALTER TABLE stats_history ADD address_count INT DEFAULT NULL
SQL);
$this->addSql(<<<'SQL'
ALTER TABLE stats_history ADD siret_count INT DEFAULT NULL
SQL);
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql(<<<'SQL'
ALTER TABLE stats_history DROP names_count
SQL);
$this->addSql(<<<'SQL'
ALTER TABLE stats_history DROP opening_hours_count
SQL);
$this->addSql(<<<'SQL'
ALTER TABLE stats_history DROP website_count
SQL);
$this->addSql(<<<'SQL'
ALTER TABLE stats_history DROP address_count
SQL);
$this->addSql(<<<'SQL'
ALTER TABLE stats_history DROP siret_count
SQL);
}
}