File tree 2 files changed +10
-0
lines changed
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<'_, '_> {
480
480
return false ;
481
481
}
482
482
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
+
483
488
match self . execution . traversal_mode ( ) {
484
489
TraversalMode :: Dummy { .. } => true ,
485
490
TraversalMode :: Check { .. } => true ,
Original file line number Diff line number Diff line change @@ -29,6 +29,10 @@ pub struct FilesConfiguration {
29
29
/// match these patterns.
30
30
#[ partial( bpaf( hide) ) ]
31
31
pub include : StringSet ,
32
+
33
+ /// The directory where the migration files are stored
34
+ #[ partial( bpaf( hide) ) ]
35
+ pub migration_dir : String ,
32
36
}
33
37
34
38
impl Default for FilesConfiguration {
@@ -37,6 +41,7 @@ impl Default for FilesConfiguration {
37
41
max_size : DEFAULT_FILE_SIZE_LIMIT ,
38
42
ignore : Default :: default ( ) ,
39
43
include : Default :: default ( ) ,
44
+ migration_dir : "migrations" . to_string ( ) ,
40
45
}
41
46
}
42
47
}
You can’t perform that action at this time.
0 commit comments