View file database/upgrades/20170912132051_rename_parent_in_cats.php

File size: 274B
<?php

use Phinx\Migration\AbstractMigration;

class RenameParentInCats extends AbstractMigration
{
    /**
     * Migrate Change.
     */
    public function change()
    {
        $table = $this->table('cats');
        $table->renameColumn('parent', 'parent_id');
    }
}