feat: allow overlapping assignments via flag set on individual teamers

This commit is contained in:
Björn Fromme
2025-12-15 15:06:32 +01:00
parent 4e92eebb39
commit a95291d4ec
6 changed files with 68 additions and 5 deletions
+31
View File
@@ -0,0 +1,31 @@
<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
final class Version20251215135758 extends AbstractMigration
{
public function getDescription(): string
{
return 'Add allow_overlapping_applications column to teamer table';
}
public function up(Schema $schema): void
{
$this->addSql('ALTER TABLE teamer ADD allow_overlapping_applications TINYINT(1) NOT NULL DEFAULT 0');
}
public function postUp(Schema $schema): void
{
$this->connection->executeStatement('UPDATE teamer SET allow_overlapping_applications = 0');
}
public function down(Schema $schema): void
{
$this->addSql('ALTER TABLE teamer DROP allow_overlapping_applications');
}
}