Files
thetool/db/migrations/20250618133701_constr_consent_add_journal_file.php
2025-06-18 14:09:59 +02:00

25 lines
687 B
PHP

<?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();
}
}
}