21 lines
512 B
PHP
21 lines
512 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use Phinx\Migration\AbstractMigration;
|
|
|
|
final class AddAddnoteToTemplateMapping extends AbstractMigration
|
|
{
|
|
public function change(): void
|
|
{
|
|
$table = $this->table('template_mapping');
|
|
$table->addColumn('is_addnote', 'boolean', [
|
|
'default' => 0,
|
|
'null' => false,
|
|
'after' => 'is_visible_parts',
|
|
'comment' => 'Campo utilizzabile come addnote (multi-selezione)',
|
|
])
|
|
->update();
|
|
}
|
|
}
|