| 
									
										
										
										
											2022-11-16 21:58:36 +08:00
										 |  |  | <?php | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | defined('BASEPATH') OR exit('No direct script access allowed'); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /* | 
					
						
							| 
									
										
										
										
											2022-11-16 22:54:06 +08:00
										 |  |  |  *   Change Greencube to Oscar number | 
					
						
							| 
									
										
										
										
											2022-11-16 21:58:36 +08:00
										 |  |  | */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | class Migration_change_greencube_to_oscar extends CI_Migration { | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	public function up() | 
					
						
							|  |  |  | 	{ | 
					
						
							|  |  |  | 		$this->db->set('COL_SAT_NAME', 'IO-117'); | 
					
						
							|  |  |  |         $this->db->set('COL_SAT_MODE', 'U'); | 
					
						
							|  |  |  | 		$this->db->where('COL_SAT_NAME', 'GREENCUBE'); | 
					
						
							|  |  |  | 		$this->db->update($this->config->item('table_name')); | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	public function down() | 
					
						
							|  |  |  | 	{ | 
					
						
							|  |  |  | 		$this->db->set('COL_SAT_NAME', 'GREENCUBE'); | 
					
						
							|  |  |  | 		$this->db->where('COL_SAT_NAME', 'IO-117'); | 
					
						
							|  |  |  | 		$this->db->update($this->config->item('table_name')); | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | } |