Added new Preorder stati

This commit is contained in:
Frank Schubert
2023-10-09 10:40:23 +02:00
parent a708df1ca2
commit cc89a778ef
5 changed files with 95 additions and 23 deletions
@@ -0,0 +1,32 @@
<?php
declare(strict_types=1);
use Phinx\Migration\AbstractMigration;
final class PreorderAddEquipment extends AbstractMigration
{
public function up(): void
{
if($this->getEnvironment() == "thetool") {
$table = $this->table("Preorder");
$table->addColumn("equipment_name", "string", ["null" => true, "default" => null, "limit" => 1024, "after" => "technology"]);
$table->renameColumn("patchposition", "equipment_port");
$table->update();
}
if($this->getEnvironment() == "addressdb") {
}
}
public function down(): void
{
if($this->getEnvironment() == "thetool") {
}
if($this->getEnvironment() == "addressdb") {
}
}
}