| 
									
										
										
										
											2019-10-06 03:40:01 +08:00
										 |  |  | <?php | 
					
						
							|  |  |  | defined('BASEPATH') OR exit('No direct script access allowed'); | 
					
						
							|  |  |  | class Migration_col_mode_tooshort extends CI_Migration { | 
					
						
							|  |  |  |         public function up() | 
					
						
							|  |  |  |         { | 
					
						
							|  |  |  |                 $fields = array( | 
					
						
							| 
									
										
										
										
											2019-10-06 05:48:18 +08:00
										 |  |  |                         'COL_MODE' => array( | 
					
						
							| 
									
										
										
										
											2019-10-06 03:40:01 +08:00
										 |  |  |                                 'name' => 'COL_MODE', | 
					
						
							|  |  |  |                                 'type' => 'VARCHAR', | 
					
						
							|  |  |  |                                 'constraint' => '12', | 
					
						
							|  |  |  |                         ) | 
					
						
							|  |  |  |                 ); | 
					
						
							|  |  |  |                 $this->dbforge->modify_column($this->config->item('table_name'), $fields); | 
					
						
							|  |  |  |         } | 
					
						
							|  |  |  |         public function down() | 
					
						
							|  |  |  |         { | 
					
						
							|  |  |  |                 echo "Not possible, sorry."; | 
					
						
							|  |  |  |         } | 
					
						
							|  |  |  | } |