Merge branch 'fronkdev' into 'master'

MailtemplateDispatch finished

See merge request fronk/thetool!906
This commit is contained in:
Frank Schubert
2025-01-14 21:41:51 +00:00
5 changed files with 314 additions and 29 deletions
@@ -0,0 +1,38 @@
<?php
declare(strict_types=1);
use Phinx\Migration\AbstractMigration;
final class CreateMailtemplateDispatchLog extends AbstractMigration
{
public function up(): void
{
if($this->getEnvironment() == "thetool") {
$log = $this->table("MailtemplateDispatchLog");
$log->addColumn("mailtemplatedispatch_id", "integer", ["null" => false]);
$log->addColumn("email", "string", ["null" => false]);
$log->addColumn("sent", "integer", ["null" => false, "default" => 0]);
$log->addColumn("create_by", "integer", ["null" => false]);
$log->addColumn("edit_by", "integer", ["null" => false]);
$log->addColumn("create", "integer", ["null" => false]);
$log->addColumn("edit", "integer", ["null" => false]);
$log->create();
}
if($this->getEnvironment() == "addressdb") {
}
}
public function down(): void
{
if($this->getEnvironment() == "thetool") {
$this->table("MailtemplateDispatchLog")->drop()->save;
}
if($this->getEnvironment() == "addressdb") {
}
}
}