mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Mirror sync interval specified as duration string (#1407)
* Sync interval specifed as duration string * Changed mirror interval text * make fmt * Add MinInterval for mirror sync * Use duration internally * Changed min default to 10m * make fmt * Incorrect default * Removed defaults in MustDuration() * Add Mirror interval migration * Default values corrected * Use transaction during migration * Change http 500 to page with error message * Cleanup session.commit()
This commit is contained in:
		@@ -102,6 +102,8 @@ var migrations = []Migration{
 | 
			
		||||
	NewMigration("add show field in user openid table", addUserOpenIDShow),
 | 
			
		||||
	// v26 -> v27
 | 
			
		||||
	NewMigration("generate and migrate repo and wiki Git hooks", generateAndMigrateGitHookChains),
 | 
			
		||||
	// v27 -> v28
 | 
			
		||||
	NewMigration("change mirror interval from hours to time.Duration", convertIntervalToDuration),
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Migrate database to current version
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user