diff --git a/sea-orm-migration/src/manager.rs b/sea-orm-migration/src/manager.rs index 9118ccdde..5a0dc414a 100644 --- a/sea-orm-migration/src/manager.rs +++ b/sea-orm-migration/src/manager.rs @@ -21,7 +21,6 @@ impl<'c> SchemaManager<'c> { { Self { conn: conn.into_schema_manager_connection(), - schema: None, } } @@ -40,18 +39,6 @@ impl<'c> SchemaManager<'c> { pub fn get_connection(&self) -> &SchemaManagerConnection<'c> { &self.conn } - - pub fn set_schema(&mut self, schema: T) -> &mut Self - where - T: Into, - { - self.schema = Some(schema.into()); - self - } - - pub fn get_schema(&self) -> &Option { - &self.schema - } } /// Schema Creation @@ -114,7 +101,7 @@ impl<'c> SchemaManager<'c> { where T: AsRef, { - has_table(&self.conn, self.schema.as_deref(), table).await + has_table(&self.conn, table).await } pub async fn has_column(&self, table: T, column: C) -> Result @@ -160,11 +147,7 @@ impl<'c> SchemaManager<'c> { } } -pub(crate) async fn has_table( - conn: &C, - _schema: Option<&str>, - table: T, -) -> Result +pub(crate) async fn has_table(conn: &C, table: T) -> Result where C: ConnectionTrait, T: AsRef,