Preorder campaign rework
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user