Merge branch 'fronkdev' into 'master'

Button to create Order from Preorder

See merge request fronk/thetool!2032
This commit is contained in:
Frank Schubert
2026-01-19 15:30:10 +00:00
10 changed files with 254 additions and 17 deletions

View File

@@ -0,0 +1,33 @@
<?php
declare(strict_types=1);
use Phinx\Migration\AbstractMigration;
final class OrderProductAddPreorderData extends AbstractMigration
{
public function up(): void
{
if($this->getEnvironment() == "thetool") {
$table = $this->table("OrderProduct");
$table->addColumn("oaid", "string", ["null" => true, "default" => null, "limit" => 255, "after" => "termination_id"]);
$table->addColumn("preorder_id", "integer", ["null" => true, "default" => null, "after" => "preorder_id"]);
$table->addColumn("snopp_order_id", "integer", ["null" => true, "default" => null, "after" => "oaid"]);
$table->update();
}
if($this->getEnvironment() == "addressdb") {
}
}
public function down(): void
{
if($this->getEnvironment() == "thetool") {
}
if($this->getEnvironment() == "addressdb") {
}
}
}