Summary: - Removed trailing newlines. - Added newline at EOF. - Removed leading newlines. - Trimmed trailing whitespace. - Spelling fix. - Added newline at EOF Test Plan: N/A Reviewers: epriestley, #blessed_reviewers Reviewed By: epriestley CC: hach-que, chad, Korvin, epriestley, aran Differential Revision: https://secure.phabricator.com/D8344
		
			
				
	
	
		
			10 lines
		
	
	
		
			353 B
		
	
	
	
		
			SQL
		
	
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
		
			353 B
		
	
	
	
		
			SQL
		
	
	
	
	
	
ALTER TABLE {$NAMESPACE}_maniphest.maniphest_task
 | 
						|
  ADD subpriority DOUBLE NOT NULL;
 | 
						|
 | 
						|
ALTER TABLE {$NAMESPACE}_maniphest.maniphest_task
 | 
						|
  ADD KEY (priority, subpriority);
 | 
						|
 | 
						|
/* Seed the subpriority column with reasonable values that keep order stable. */
 | 
						|
UPDATE {$NAMESPACE}_maniphest.maniphest_task
 | 
						|
  SET subpriority = (UNIX_TIMESTAMP() - dateModified);
 |