fix: add check for postgresql prefix (#2825)

thanks for the speedy fix!
This commit is contained in:
Scotte Zinn
2025-07-16 11:53:25 -04:00
committed by GitHub
parent 8599bb04a7
commit 403d4a1141

View File

@ -55,7 +55,7 @@ pub struct DbSettings {
impl DbSettings {
pub fn db_type(&self) -> DbType {
if self.db_uri.starts_with("postgres://") {
if self.db_uri.starts_with("postgres://") || self.db_uri.starts_with("postgresql://") {
DbType::Postgres
} else if self.db_uri.starts_with("sqlite://") {
DbType::Sqlite