Skip to content

Commit a5bea50

Browse files
committed
initial commit
1 parent 9b92948 commit a5bea50

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

crates/pg_cli/src/execute/traverse.rs

+5
Original file line numberDiff line numberDiff 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,

crates/pg_configuration/src/files.rs

+5
Original file line numberDiff line numberDiff 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

3438
impl 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
}

0 commit comments

Comments
 (0)