Use NoteDb sequence seed for groups sequence initialization
Change-Id: I49afd0f6e02ccd498f31075961a2f69c9c53e71e
This commit is contained in:
		 David Ostrovsky
					David Ostrovsky
				
			
				
					committed by
					
						 Dave Borowitz
						Dave Borowitz
					
				
			
			
				
	
			
			
			 Dave Borowitz
						Dave Borowitz
					
				
			
						parent
						
							ecdea9df55
						
					
				
				
					commit
					bd2844f3ac
				
			| @@ -40,15 +40,13 @@ public class Schema_163 extends ReviewDbSchemaVersion { | ||||
|  | ||||
|   @Override | ||||
|   protected void migrateData(ReviewDb db, UpdateUI ui) throws OrmException, SQLException { | ||||
|     @SuppressWarnings("deprecation") | ||||
|     RepoSequence.Seed groupSeed = db::nextAccountGroupId; | ||||
|     RepoSequence groupSeq = | ||||
|         new RepoSequence( | ||||
|             repoManager, | ||||
|             GitReferenceUpdated.DISABLED, | ||||
|             allUsersName, | ||||
|             Sequences.NAME_GROUPS, | ||||
|             groupSeed, | ||||
|             () -> ReviewDb.FIRST_GROUP_ID, | ||||
|             1); | ||||
|  | ||||
|     // consume one account ID to ensure that the group sequence is initialized in NoteDb | ||||
|   | ||||
		Reference in New Issue
	
	Block a user