View file upgrade/migrations/20161103235834_rename_fields_in_antimat.php
<?php use Phinx\Migration\AbstractMigration; class RenameFieldsInAntimat extends AbstractMigration { /** * Migrate Change. */ public function change() { $table = $this->table('antimat'); $table->renameColumn('mat_id', 'id'); $table->renameColumn('mat_string', 'string'); } }