Run migrations if new db was created
This commit is contained in:
		
							parent
							
								
									e9fcc71382
								
							
						
					
					
						commit
						292010b830
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -164,6 +164,7 @@ impl SqliteDb {
 | 
			
		|||
        }
 | 
			
		||||
        if let Ok(pool) = pool_options.connect(&env_db_path).await {
 | 
			
		||||
            log::info!("Connected to sqlite pool {}", name);
 | 
			
		||||
            SqliteDb::migrate(&pool).await;
 | 
			
		||||
 | 
			
		||||
            pool
 | 
			
		||||
        } else {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue