Preorder Status Trigger Email done

This commit is contained in:
Frank Schubert
2024-12-09 16:47:11 +01:00
parent 25d4e8271f
commit 72367e2a63
9 changed files with 451 additions and 34 deletions
@@ -0,0 +1,40 @@
<?php
declare(strict_types=1);
use Phinx\Migration\AbstractMigration;
final class CreatePreordercampaignStatusnotificationMailtemplate extends AbstractMigration
{
public function up(): void
{
if($this->getEnvironment() == "thetool") {
$table = $this->table('PreordercampaignStatusnotificationMailtemplate');
$table->addColumn("preordercampaign_id", "integer", ["null" => false]);
$table->addColumn("status_code", "integer", ["null" => false]);
$table->addColumn("mailtemplate_id", "integer", ["null" => false]);
$table->addColumn("create_by", "integer", ["null" => false]);
$table->addColumn("edit_by", "integer", ["null" => false]);
$table->addColumn("create", "integer", ["null" => false]);
$table->addColumn("edit", "integer", ["null" => false]);
$table->create();
}
if($this->getEnvironment() == "addressdb") {
}
}
public function down(): void
{
if($this->getEnvironment() == "thetool") {
$this->table('PreordercampaignStatusnotificationMailtemplate')->drop()->save();
}
if($this->getEnvironment() == "addressdb") {
}
}
}