added new file upload and bug fix

This commit is contained in:
Luca Haid
2025-06-18 14:51:51 +02:00
parent 2167ed1310
commit 2357a43911
5 changed files with 105 additions and 1 deletions
@@ -0,0 +1,27 @@
<?php /** @noinspection ALL */
declare(strict_types=1);
use Phinx\Migration\AbstractMigration;
final class ConstrConsentAddDeferred extends AbstractMigration
{
public function up(): void
{
if ($this->getEnvironment() == "thetool") {
$table = $this->table('ConstructionConsent');
$table->addColumn('deferred', 'boolean', ['null' => true, 'default' => false])
->save();
}
}
public function down(): void
{
if ($this->getEnvironment() == "thetool") {
$table = $this->table('ConstructionConsent');
$table->removeColumn('deferred')
->save();
}
}
}
// ALTER TABLE `ConstructionConsent` ADD COLUMN `deferred` BOOLEAN NULL DEFAULT FALSE AFTER `text`;