Location: PHPKode > scripts > Phinx > phinx-0.2.x-dev/tests/Phinx/Migration/_files/reversiblemigrations/20121224200739_rename_bio_to_biography.php
<?php

use Phinx\Migration\AbstractMigration;

class RenameBioToBiography extends AbstractMigration
{
    /**
     * Change.
     */
    public function change()
    {
        // users table
        $table = $this->table('users');
        $table->renameColumn('bio', 'biography');
    }
    
    /**
     * Migrate Up.
     */
    public function up()
    {
    
    }

    /**
     * Migrate Down.
     */
    public function down()
    {

    }
}
Return current item: Phinx