Invoice BMD export

This commit is contained in:
Frank Schubert
2024-07-09 18:50:08 +02:00
parent 74e78fed49
commit cc4f2e3bdb
7 changed files with 241 additions and 27 deletions
@@ -0,0 +1,31 @@
<?php
declare(strict_types=1);
use Phinx\Migration\AbstractMigration;
final class InvoiceAddBmdExport extends AbstractMigration
{
public function up(): void
{
if($this->getEnvironment() == "thetool") {
$table = $this->table("Invoice");
$table->addColumn("bmd_export_date", "integer", ["null" => true, "default" => null, "after" => "total_gross"]);
$table->update();
}
if($this->getEnvironment() == "addressdb") {
}
}
public function down(): void
{
if($this->getEnvironment() == "thetool") {
$this->table("Invoice")->addColumn("bmd_export_date")->save();
}
if($this->getEnvironment() == "addressdb") {
}
}
}