<?php

defined('BASEPATH') OR exit('No direct script access allowed');

class Migration_Mod_user_profile_2 extends CI_Migration {

    public function up() {
        $fields = array(
            'card_name' => array(
                'type' => 'VARCHAR',
                'constraint' => 255,
                'null' => true,
                'after' => 'name'
            ),
        );
        $this->dbforge->add_column('user_profile', $fields);
    }

    //--------------------------------------------------------------------

    public function down() {
        $this->dbforge->drop_column('user_profile', 'card_name');
    }

}
