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

use Phinx\Migration\AbstractMigration;

class UpdateInfoTable extends AbstractMigration
{
    /**
     * Change.
     */
    public function change()
    {
        // info table
        $info = $this->table('info');
        $info->addColumn('password', 'string', array('limit' => 40))
             ->update();
    }
    
    /**
     * Migrate Up.
     */
    public function up()
    {
    
    }

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

    }
}
Return current item: Phinx