enhanced preorder map

This commit is contained in:
2025-09-18 14:25:27 +02:00
parent 93e85d54b0
commit 970dc46f06
5 changed files with 129 additions and 39 deletions
@@ -0,0 +1,20 @@
<?php
declare(strict_types=1);
use Phinx\Migration\AbstractMigration;
final class ModifyPreordercampaign2 extends AbstractMigration {
public function up(): void {
if ($this->getEnvironment() !== 'thetool') return;
$sql = "ALTER TABLE `Preorder` ADD INDEX `idx_adb_wohneinheit_id` (`adb_wohneinheit_id`)";
$this->execute($sql);
}
public function down(): void {
if ($this->getEnvironment() !== 'thetool') return;
$sql = "ALTER TABLE `Preorder` DROP INDEX `idx_adb_wohneinheit_id`";
$this->execute($sql);
}
}