Preorder campaign rework

This commit is contained in:
Luca Haid
2025-03-05 16:32:20 +00:00
parent c032929283
commit f42e472000
10 changed files with 465 additions and 291 deletions
@@ -0,0 +1,20 @@
<?php /** @noinspection ALL */
declare(strict_types=1);
use Phinx\Migration\AbstractMigration;
final class AddPreorderDbImprovements extends AbstractMigration {
public function up(): void {
if ($this->getEnvironment() == "thetool") {
$this->table("PreordercampaignSalescluster")->addIndex(["preordercampaign_id","salescluster_id"])->save();
$this->table("RimoWorkorder")->addIndex(["adb_wohneinheit_id"])->save();
}
}
public function down(): void {
if ($this->getEnvironment() == "thetool") {
$this->table("PreordercampaignSalescluster")->removeIndex(["preordercampaign_id","salescluster_id"])->save();
$this->table("RimoWorkorder")->removeIndex(["adb_wohneinheit_id"])->save();
}
}
}