Added Preorder cancel request UI changes

This commit is contained in:
Frank Schubert
2025-09-17 12:15:52 +02:00
parent f6edba49a0
commit bad591e80d
4 changed files with 188 additions and 13 deletions

View File

@@ -0,0 +1,32 @@
<?php
declare(strict_types=1);
use Phinx\Migration\AbstractMigration;
final class PreorderAddCancelRequestStatusCode extends AbstractMigration
{
public function up(): void
{
if($this->getEnvironment() == "thetool") {
$table = $this->table("Preorder");
$table->addColumn("cancel_request_status_code", "string", ["null" => true, "default" => null, "limit" => 64, "after" => "cancel_request_by"]);
$table->addColumn("cancel_request_execution_date", "date", ["null" => true, "default" => null, "limit" => 64, "after" => "cancel_request_status_code"]);
$table->update();
}
if($this->getEnvironment() == "addressdb") {
}
}
public function down(): void
{
if($this->getEnvironment() == "thetool") {
$this->table("Preorder")->removeColumn("cancel_request_status_code")->update();
}
if($this->getEnvironment() == "addressdb") {
}
}
}