View file database/upgrades/20180425184036_rename_note_table.php
<?php use Phinx\Migration\AbstractMigration; class RenameNoteTable extends AbstractMigration { /** * Migrate Up. */ public function up() { $table = $this->table('note'); $table->rename('notes'); } /** * Migrate Down. */ public function down() { $table = $this->table('notes'); $table->rename('note'); } }