Files
thetool/db/migrations/20241209131734_create_preordercampaign_statusnotification_mailtemplate.php
2024-12-09 16:47:11 +01:00

41 lines
1.3 KiB
PHP

<?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") {
}
}
}