View file database/upgrades/20180425181828_rename_vote_table.php

File size: 392B
<?php

use Phinx\Migration\AbstractMigration;

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

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