Address: Added manual_invoice_sepa_limit

This commit is contained in:
Frank Schubert
2026-01-15 20:10:52 +01:00
parent 3241b8027d
commit 48233944b5
4 changed files with 50 additions and 3 deletions

View File

@@ -0,0 +1,31 @@
<?php
declare(strict_types=1);
use Phinx\Migration\AbstractMigration;
final class AddressAddManualInvoiceSepaLimit extends AbstractMigration
{
public function up(): void
{
if($this->getEnvironment() == "thetool") {
$table = $this->table('Address');
$table->addColumn("manual_invoice_sepa_limit", "decimal", ["null" => true, "default" => 500, "precision" => 9, "scale" => 2, "after" => "fibu_payment_skonto_rate"]);
$table->update();
}
if($this->getEnvironment() == "addressdb") {
}
}
public function down(): void
{
if($this->getEnvironment() == "thetool") {
$this->table('Address')->removeColumn("manual_invoice_sepa_limit")->update();
}
if($this->getEnvironment() == "addressdb") {
}
}
}