| 
									
										
										
										
											2025-08-18 21:07:43 +08:00
										 |  |  | <?php defined('BASEPATH') or exit('No direct script access allowed'); | 
					
						
							| 
									
										
										
										
											2013-02-25 07:58:36 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-08-18 21:07:43 +08:00
										 |  |  | class Migration_add_lotw_credentials extends CI_Migration | 
					
						
							|  |  |  | { | 
					
						
							| 
									
										
										
										
											2013-02-25 07:58:36 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	public function up() | 
					
						
							|  |  |  | 	{ | 
					
						
							|  |  |  | 		$fields = array( | 
					
						
							| 
									
										
										
										
											2025-08-18 21:07:43 +08:00
										 |  |  | 			'user_lotw_name VARCHAR(32) DEFAULT NULL', | 
					
						
							|  |  |  | 			'user_lotw_password VARCHAR(64) DEFAULT NULL' | 
					
						
							|  |  |  | 		); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 		$this->dbforge->add_column('users', $fields); | 
					
						
							| 
									
										
										
										
											2013-02-25 07:58:36 +08:00
										 |  |  | 	} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	public function down() | 
					
						
							|  |  |  | 	{ | 
					
						
							|  |  |  | 		$this->dbforge->drop_column('users', 'user_lotw_name'); | 
					
						
							| 
									
										
										
										
											2025-08-18 21:07:43 +08:00
										 |  |  | 		$this->dbforge->drop_column('users', 'user_lotw_password'); | 
					
						
							| 
									
										
										
										
											2013-02-25 07:58:36 +08:00
										 |  |  | 	} | 
					
						
							|  |  |  | } |