22 lines
543 B
PHP
22 lines
543 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use Phinx\Migration\AbstractMigration;
|
|
|
|
final class AddLogFileToDatadb extends AbstractMigration
|
|
{
|
|
public function change(): void
|
|
{
|
|
$table = $this->table('datadb');
|
|
if (!$table->hasColumn('log_file')) {
|
|
$table->addColumn('log_file', 'string', [
|
|
'limit' => 255,
|
|
'null' => true,
|
|
'default' => null,
|
|
'after' => 'commessaweb', // aggiusta se la colonna non esiste
|
|
])->update();
|
|
}
|
|
}
|
|
}
|