| 
									
										
										
										
											2019-09-23 03:57:07 +08:00
										 |  |  | <?php | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | defined('BASEPATH') OR exit('No direct script access allowed'); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | class Migration_add_column_logbookid extends CI_Migration { | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         public function up() | 
					
						
							|  |  |  |         { | 
					
						
							|  |  |  |                  $fields = array( | 
					
						
							|  |  |  |                         'logbook_id int(11) DEFAULT NULL', | 
					
						
							|  |  |  |                 ); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |                 $this->dbforge->add_column($this->config->item('table_name'), $fields); | 
					
						
							|  |  |  |         } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         public function down() | 
					
						
							|  |  |  |         { | 
					
						
							| 
									
										
										
										
											2019-09-23 04:51:55 +08:00
										 |  |  |                 echo "not possible"; | 
					
						
							| 
									
										
										
										
											2019-09-23 03:57:07 +08:00
										 |  |  |         } | 
					
						
							|  |  |  | } |