| 
									
										
										
										
											2023-12-08 21:34:47 +08:00
										 |  |  | <?php | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | // Create migration that makes the submode column in the logbook table an index
 | 
					
						
							| 
									
										
										
										
											2023-12-08 23:28:30 +08:00
										 |  |  | class Migration_extend_default_qsl  extends CI_Migration | 
					
						
							|  |  |  | { | 
					
						
							| 
									
										
										
										
											2023-12-08 21:34:47 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-12-08 23:28:30 +08:00
										 |  |  |     public function up() | 
					
						
							|  |  |  |     { | 
					
						
							| 
									
										
										
										
											2023-12-08 21:34:47 +08:00
										 |  |  |         $this->db->query("ALTER TABLE `users` CHANGE COLUMN `user_default_confirmation` `user_default_confirmation` VARCHAR(4) NULL DEFAULT NULL"); | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-12-08 23:28:30 +08:00
										 |  |  |     public function down() | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  |         //the down function can be empty here, but we need one. 
 | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | } |