Preorderlogistics QR Code WIP

This commit is contained in:
Frank Schubert
2023-11-21 17:56:15 +01:00
parent 9c81ea9531
commit 2b997611e2
9 changed files with 425 additions and 11 deletions
@@ -0,0 +1,39 @@
<?php
declare(strict_types=1);
use Phinx\Migration\AbstractMigration;
final class CreatePreorderlogisticsTable extends AbstractMigration
{
public function up(): void
{
if($this->getEnvironment() == "thetool") {
$table = $this->table("Preorderlogistics");
$table->addColumn("preorder_id", "integer", ["null" => false]);
$table->addColumn("sent", "integer", ["null" => false, "default" => 0]);
$table->addColumn("sent_by", "integer", ["null" => true, "default" => null]);
$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("Preorderlogistics")->drop()->save();
}
if($this->getEnvironment() == "addressdb") {
}
}
}