Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
billy1624 committed Mar 27, 2024
1 parent 24f7b55 commit ffce5b7
Showing 1 changed file with 2 additions and 19 deletions.
21 changes: 2 additions & 19 deletions sea-orm-migration/src/manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ impl<'c> SchemaManager<'c> {
{
Self {
conn: conn.into_schema_manager_connection(),
schema: None,
}
}

Expand All @@ -40,18 +39,6 @@ impl<'c> SchemaManager<'c> {
pub fn get_connection(&self) -> &SchemaManagerConnection<'c> {
&self.conn
}

pub fn set_schema<T>(&mut self, schema: T) -> &mut Self
where
T: Into<String>,
{
self.schema = Some(schema.into());
self
}

pub fn get_schema(&self) -> &Option<String> {
&self.schema
}
}

/// Schema Creation
Expand Down Expand Up @@ -114,7 +101,7 @@ impl<'c> SchemaManager<'c> {
where
T: AsRef<str>,
{
has_table(&self.conn, self.schema.as_deref(), table).await
has_table(&self.conn, table).await
}

pub async fn has_column<T, C>(&self, table: T, column: C) -> Result<bool, DbErr>
Expand Down Expand Up @@ -160,11 +147,7 @@ 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, table: T) -> Result<bool, DbErr>
where
C: ConnectionTrait,
T: AsRef<str>,
Expand Down

0 comments on commit ffce5b7

Please sign in to comment.