Re-add missing migration that was dropped during merge conflict
This commit is contained in:
		
							parent
							
								
									9a29b4adf3
								
							
						
					
					
						commit
						681708ffa0
					
				@ -263,6 +263,15 @@ class DatabaseMigration {
 | 
				
			|||||||
      await this.$executeQuery('ALTER TABLE `lightning_stats` ADD unannounced_nodes int(11) NOT NULL DEFAULT "0"');
 | 
					      await this.$executeQuery('ALTER TABLE `lightning_stats` ADD unannounced_nodes int(11) NOT NULL DEFAULT "0"');
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    if (databaseSchemaVersion < 27 && isBitcoin === true) {
 | 
				
			||||||
 | 
					      await this.$executeQuery('ALTER TABLE `lightning_stats` ADD avg_capacity bigint(20) unsigned NOT NULL DEFAULT "0"');
 | 
				
			||||||
 | 
					      await this.$executeQuery('ALTER TABLE `lightning_stats` ADD avg_fee_rate int(11) unsigned NOT NULL DEFAULT "0"');
 | 
				
			||||||
 | 
					      await this.$executeQuery('ALTER TABLE `lightning_stats` ADD avg_base_fee_mtokens bigint(20) unsigned NOT NULL DEFAULT "0"');
 | 
				
			||||||
 | 
					      await this.$executeQuery('ALTER TABLE `lightning_stats` ADD med_capacity bigint(20) unsigned NOT NULL DEFAULT "0"');
 | 
				
			||||||
 | 
					      await this.$executeQuery('ALTER TABLE `lightning_stats` ADD med_fee_rate int(11) unsigned NOT NULL DEFAULT "0"');
 | 
				
			||||||
 | 
					      await this.$executeQuery('ALTER TABLE `lightning_stats` ADD med_base_fee_mtokens bigint(20) unsigned NOT NULL DEFAULT "0"');
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					    
 | 
				
			||||||
    if (databaseSchemaVersion < 28 && isBitcoin === true) {
 | 
					    if (databaseSchemaVersion < 28 && isBitcoin === true) {
 | 
				
			||||||
      await this.$executeQuery(`TRUNCATE lightning_stats`);
 | 
					      await this.$executeQuery(`TRUNCATE lightning_stats`);
 | 
				
			||||||
      await this.$executeQuery(`TRUNCATE node_stats`);
 | 
					      await this.$executeQuery(`TRUNCATE node_stats`);
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user