Skip to content

Commit

Permalink
Merge pull request #2084 from MTES-MCT/feature/2083-ouverture-93-enab…
Browse files Browse the repository at this point in the history
…le-autoaffectation

[Ouverture] Enable auto-affectation in Seine St-Denis 93
  • Loading branch information
numew authored Jan 3, 2024
2 parents 3e7bff7 + f76fac3 commit 218f788
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions migrations/Version20240103121522.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?php

declare(strict_types=1);

namespace DoctrineMigrations;

use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;

final class Version20240103121522 extends AbstractMigration
{
public function getDescription(): string
{
return 'Enable auto-affectation in Seine St-Denis';
}

public function up(Schema $schema): void
{
$this->addSql(
'UPDATE territory SET is_auto_affectation_enabled = 1 WHERE zip = \'93\''
);
}

public function down(Schema $schema): void
{
$this->addSql(
'UPDATE territory SET is_auto_affectation_enabled = 0 WHERE zip = \'93\''
);
}
}

0 comments on commit 218f788

Please sign in to comment.