mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	@@ -51,6 +51,7 @@ type Version struct {
 | 
			
		||||
// update _MIN_VER_DB accordingly
 | 
			
		||||
var migrations = []Migration{
 | 
			
		||||
	NewMigration("generate collaboration from access", accessToCollaboration), // V0 -> V1
 | 
			
		||||
	NewMigration("refactor access table to use id's", accessRefactor),         // V1 -> V2
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Migrate database to current version
 | 
			
		||||
@@ -208,3 +209,8 @@ func accessToCollaboration(x *xorm.Engine) error {
 | 
			
		||||
 | 
			
		||||
	return sess.Commit()
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func accessRefactor(x *xorm.Engine) error {
 | 
			
		||||
	//TODO
 | 
			
		||||
	return nil
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user