We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03ff137 commit 3181f9cCopy full SHA for 3181f9c
src/migrate/mod.rs
@@ -117,6 +117,13 @@ pub async fn run_migrate(options: MigrateOptions) -> anyhow::Result<()> {
117
118
let db_conf = deserialize_db_conf(db_conf_path)?;
119
120
+ if let DatabaseDriver::SQLite { filename } = &db_conf.driver {
121
+ if filename.is_empty() {
122
+ println!("Invalid configuration: Filename for sqlite is empty");
123
+ return Ok(());
124
+ }
125
126
+
127
let p = Path::new(options.migration_dir.as_str());
128
if !p.exists() || p.is_file() {
129
println!(
0 commit comments