fix db migration 75 on liquid
This commit is contained in:
		
							parent
							
								
									5eb117165f
								
							
						
					
					
						commit
						3707763e30
					
				| @ -653,9 +653,11 @@ class DatabaseMigration { | ||||
|       await this.$executeQuery('ALTER TABLE `prices` ADD `TRY` float DEFAULT "-1"'); | ||||
|       await this.$executeQuery('ALTER TABLE `prices` ADD `ZAR` float DEFAULT "-1"'); | ||||
| 
 | ||||
|       await this.$executeQuery('TRUNCATE hashrates'); | ||||
|       await this.$executeQuery('TRUNCATE difficulty_adjustments'); | ||||
|       await this.$executeQuery(`UPDATE state SET string = NULL WHERE name = 'pools_json_sha'`); | ||||
|       if (isBitcoin === true) { | ||||
|         await this.$executeQuery('TRUNCATE hashrates'); | ||||
|         await this.$executeQuery('TRUNCATE difficulty_adjustments'); | ||||
|         await this.$executeQuery(`UPDATE state SET string = NULL WHERE name = 'pools_json_sha'`); | ||||
|       } | ||||
| 
 | ||||
|       await this.updateToSchemaVersion(75); | ||||
|     } | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user