File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -480,6 +480,11 @@ impl TraversalContext for TraversalOptions<'_, '_> {
480480            return  false ; 
481481        } 
482482
483+         // only allow .sql and .pg files for now 
484+         if  path. extension ( ) . is_some_and ( |ext| ext != "sql"  && ext != "pg" )  { 
485+             return  false ; 
486+         } 
487+ 
483488        match  self . execution . traversal_mode ( )  { 
484489            TraversalMode :: Dummy  {  .. }  => true , 
485490            TraversalMode :: Check  {  .. }  => true , 
Original file line number Diff line number Diff line change @@ -29,6 +29,10 @@ pub struct FilesConfiguration {
2929/// match these patterns. 
3030#[ partial( bpaf( hide) ) ]  
3131    pub  include :  StringSet , 
32+ 
33+     /// The directory where the migration files are stored 
34+ #[ partial( bpaf( hide) ) ]  
35+     pub  migration_dir :  String , 
3236} 
3337
3438impl  Default  for  FilesConfiguration  { 
@@ -37,6 +41,7 @@ impl Default for FilesConfiguration {
3741            max_size :  DEFAULT_FILE_SIZE_LIMIT , 
3842            ignore :  Default :: default ( ) , 
3943            include :  Default :: default ( ) , 
44+             migration_dir :  "migrations" . to_string ( ) , 
4045        } 
4146    } 
4247} 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments