diff --git a/src/helpers.rs b/src/helpers.rs index eae4568..dfd2c29 100644 --- a/src/helpers.rs +++ b/src/helpers.rs @@ -33,6 +33,6 @@ pub fn set_up_helpers(db: &mut dyn Conn, current_migration: &Option) -> } pub fn tear_down_helpers(db: &mut dyn Conn) -> anyhow::Result<()> { - db.query("DROP FUNCTION reshape.is_old_schema;")?; + db.query("DROP FUNCTION IF EXISTS reshape.is_old_schema;")?; Ok(()) }