Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
billy1624 committed Mar 19, 2024
1 parent 338a979 commit 4950817
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions sea-orm-migration/src/manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ impl<'c> SchemaManager<'c> {
where
T: AsRef<str>,
{
has_table(&self.conn, self.schema.as_ref().map(|s| s.as_str()), table).await
has_table(&self.conn, self.schema.as_deref(), table).await
}

pub async fn has_column<T, C>(&self, table: T, column: C) -> Result<bool, DbErr>
Expand Down Expand Up @@ -160,7 +160,11 @@ impl<'c> SchemaManager<'c> {
}
}

pub(crate) async fn has_table<C, T>(conn: &C, _schema: Option<&str>, table: T) -> Result<bool, DbErr>
pub(crate) async fn has_table<C, T>(
conn: &C,
_schema: Option<&str>,
table: T,
) -> Result<bool, DbErr>
where
C: ConnectionTrait,
T: AsRef<str>,
Expand Down

0 comments on commit 4950817

Please sign in to comment.