View file database/upgrades/20180425184902_rename_counter_table.php
<?php use Phinx\Migration\AbstractMigration; class RenameCounterTable extends AbstractMigration { /** * Migrate Up. */ public function up() { $table = $this->table('counter'); $table->rename('counters'); } /** * Migrate Down. */ public function down() { $table = $this->table('counters'); $table->rename('counter'); } }