mirror of
https://forge.chapril.org/tykayn/osm-commerces
synced 2025-06-20 01:44:42 +02:00
42 lines
1,023 B
PHP
42 lines
1,023 B
PHP
![]() |
<?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 Version20250617154118 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 ADD siren SMALLINT DEFAULT NULL
|
||
|
SQL);
|
||
|
$this->addSql(<<<'SQL'
|
||
|
ALTER TABLE stats ADD code_epci SMALLINT 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 DROP siren
|
||
|
SQL);
|
||
|
$this->addSql(<<<'SQL'
|
||
|
ALTER TABLE stats DROP code_epci
|
||
|
SQL);
|
||
|
}
|
||
|
}
|