mirror of
				https://github.com/go-gitea/gitea
				synced 2025-11-04 05:18:25 +00:00 
			
		
		
		
	Merge branch '0.8.0' of github.com:gogits/gogs into develop
This commit is contained in:
		@@ -106,6 +106,11 @@ func Migrate(x *xorm.Engine) error {
 | 
				
			|||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	v := currentVersion.Version
 | 
						v := currentVersion.Version
 | 
				
			||||||
 | 
						if _MIN_DB_VER > v {
 | 
				
			||||||
 | 
							log.Fatal(4, "Gogs no longer supports auto-migration from your previously installed version. Please try to upgrade to a lower version first, then upgrade to current version.")
 | 
				
			||||||
 | 
							return nil
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if int(v-_MIN_DB_VER) > len(migrations) {
 | 
						if int(v-_MIN_DB_VER) > len(migrations) {
 | 
				
			||||||
		// User downgraded Gogs.
 | 
							// User downgraded Gogs.
 | 
				
			||||||
		currentVersion.Version = int64(len(migrations) + _MIN_DB_VER)
 | 
							currentVersion.Version = int64(len(migrations) + _MIN_DB_VER)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user