• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
add_column not working in codeigniter 3.1.3

#1
Hi All, 

Iam trying to add a new column using the following code, but it is not working. Thanks in advance...

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

class Migration_Add_age_patient extends CI_Migration {

  public function up(){
  $this->dbforge->add_column('patientmedicalprofile', array(
                'age' => array(
                    'type' => 'INT',
                    'constraint' => 11,
                    'default' => '',
                    'after' => 'birthday',
                    'null' => TRUE,
                )
            ));
 

  }

  public function down(){

  }
}
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2017 MyBB Group.