wip: group inquiries and bookings

This commit is contained in:
Björn Fromme committed 2026-07-16 17:13:15 +02:00
1 parent eba1a901d6
commit 3c9caeaad0
115 files changed
+8107 -424

No files matched your search

+31
View File
@@ -0,0 +1,31 @@
<?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 Version20260707094812 extends AbstractMigration
{
public function getDescription(): string
{
return 'Drop children_count (4–5 J.) and rename adolescents_count to children_count (now 4–X J.)';
}
public function up(Schema $schema): void
{
$this->addSql('ALTER TABLE accommodation_booking DROP COLUMN children_count');
$this->addSql('ALTER TABLE accommodation_booking RENAME COLUMN adolescents_count TO children_count');
}
public function down(Schema $schema): void
{
$this->addSql('ALTER TABLE accommodation_booking RENAME COLUMN children_count TO adolescents_count');
$this->addSql('ALTER TABLE accommodation_booking ADD COLUMN children_count INT NOT NULL DEFAULT 0');
}
}