added new file upload and bug fix

This commit is contained in:
Luca Haid
2025-06-18 14:09:59 +02:00
parent a5de6daf27
commit fedfaac61d
4 changed files with 55 additions and 5 deletions
@@ -0,0 +1,25 @@
<?php /** @noinspection ALL */
declare(strict_types=1);
use Phinx\Migration\AbstractMigration;
final class AddNewIndexesThetool extends AbstractMigration
{
public function up(): void
{
if ($this->getEnvironment() == "thetool") {
$table = $this->table('ConstructionConsentJournal');
$table->addColumn('file_id', 'integer', ['null' => true, 'after' => 'text'])
->save();
}
}
public function down(): void
{
if ($this->getEnvironment() == "thetool") {
$table = $this->table('ConstructionConsentJournal');
$table->removeColumn('file_id')
->save();
}
}
}