[Database version 1402] Rework parsed_url table
- Allow arbitrary-sized URL - Use URL hash for primary key instead of truncated URL, requires table truncation pre update - Add expires field
This commit is contained in:
		
					parent
					
						
							
								1b90686fcd
							
						
					
				
			
			
				commit
				
					
						7de03eb13f
					
				
			
		
					 3 changed files with 23 additions and 8 deletions
				
			
		
							
								
								
									
										10
									
								
								update.php
									
										
									
									
									
								
							
							
						
						
									
										10
									
								
								update.php
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -817,3 +817,13 @@ function update_1400()
 | 
			
		|||
 | 
			
		||||
	return Update::SUCCESS;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
function pre_update_1403()
 | 
			
		||||
{
 | 
			
		||||
	// Necessary before a primary key change
 | 
			
		||||
	if (!DBA::e("DROP TABLE `parsed_url`")) {
 | 
			
		||||
		return Update::FAILED;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	return Update::SUCCESS;
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue