Added Sepa Mandats stuff

This commit is contained in:
Frank Schubert
2024-07-08 20:09:47 +02:00
parent 1888dd71e5
commit 40b1ea8605
9 changed files with 176 additions and 17 deletions
@@ -0,0 +1,31 @@
<?php
declare(strict_types=1);
use Phinx\Migration\AbstractMigration;
final class AddressAddLastInvoiceDate extends AbstractMigration
{
public function up(): void
{
if($this->getEnvironment() == "thetool") {
$table = $this->table('Address');
$table->addColumn("last_invoice_date", "integer", ["null" => true, "default" => null, "after" => "sepa_date"]);
$table->save();
}
if($this->getEnvironment() == "addressdb") {
}
}
public function down(): void
{
if($this->getEnvironment() == "thetool") {
$this->table('Address')->removeColumn("last_invoice_date")->save();
}
if($this->getEnvironment() == "addressdb") {
}
}
}