feat: dedicated logos per country for accommodation bookings

This commit is contained in:
Björn Fromme
2026-08-05 12:28:43 +02:00
parent 84df3a94d9
commit e5fa63b7e8
13 changed files with 171 additions and 3 deletions
+28
View File
@@ -0,0 +1,28 @@
<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
final class Version20260805102251 extends AbstractMigration
{
public function getDescription(): string
{
return 'Add country to accommodation, defaulting existing rows to DE';
}
public function up(Schema $schema): void
{
// Added with a default so existing rows backfill to DE, then dropped again to match the mapping
$this->addSql("ALTER TABLE accommodation ADD country VARCHAR(2) DEFAULT 'DE' NOT NULL");
$this->addSql('ALTER TABLE accommodation ALTER country DROP DEFAULT');
}
public function down(Schema $schema): void
{
$this->addSql('ALTER TABLE accommodation DROP country');
}
}