mirror of
https://github.com/ilyakooo0/reshape.git
synced 2024-11-25 23:13:29 +03:00
Use IF EXISTS when dropping helpers
This commit is contained in:
parent
751c1975d7
commit
afea8e304a
@ -33,6 +33,6 @@ pub fn set_up_helpers(db: &mut dyn Conn, current_migration: &Option<String>) ->
|
||||
}
|
||||
|
||||
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(())
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user