View file database/upgrades/20180425132220_rename_guest_table.php

File size: 405B
<?php

use Phinx\Migration\AbstractMigration;

class RenameGuestTable extends AbstractMigration
{
    /**
     * Migrate Up.
     */
    public function up()
    {
        $table = $this->table('guest');
        $table->rename('guestbooks');
    }

    /**
     * Migrate Down.
     */
    public function down()
    {
        $table = $this->table('guestbooks');
        $table->rename('guest');
    }
}