25 lines
694 B
PHP
25 lines
694 B
PHP
<?php /** @noinspection ALL */
|
|
declare(strict_types=1);
|
|
|
|
use Phinx\Migration\AbstractMigration;
|
|
|
|
final class ConstrConsentAddJournalFile 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();
|
|
}
|
|
}
|
|
} |