Merge pull request #3585 from mempool/nymkappa/fix-db-state
Reset pools sha db state
This commit is contained in:
		
						commit
						c2de391a14
					
				@ -497,6 +497,7 @@ class DatabaseMigration {
 | 
			
		||||
      this.uniqueLog(logger.notice, this.blocksTruncatedMessage);
 | 
			
		||||
      await this.$executeQuery('DELETE FROM `pools`');
 | 
			
		||||
      await this.$executeQuery('ALTER TABLE pools AUTO_INCREMENT = 1');
 | 
			
		||||
      await this.$executeQuery(`UPDATE state SET string = NULL WHERE name = 'pools_json_sha'`);
 | 
			
		||||
      this.uniqueLog(logger.notice, '`pools` table has been truncated`');
 | 
			
		||||
      await this.updateToSchemaVersion(56);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user