Просмотр файла database/upgrades/20191216234538_add_guest_name_to_guestbooks.php

Размер файла: 398B
<?php

declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

final class AddGuestNameToGuestbooks extends AbstractMigration
{
    /**
     * Migrate Change.
     */
    public function change(): void
    {
        $table = $this->table('guestbooks');
        $table->addColumn('guest_name', 'string', ['limit' => 20, 'after' => 'reply', 'null' => true])
            ->update();
    }
}