From 4dfef7a9f7c7fdccd2298a4b8223bcbd2db80fd6 Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Wed, 26 Jul 2023 11:08:55 -0700 Subject: [PATCH] let it fail --- migration/src/m20230726_162138_drop_rpc_accounting_v2_fk.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/migration/src/m20230726_162138_drop_rpc_accounting_v2_fk.rs b/migration/src/m20230726_162138_drop_rpc_accounting_v2_fk.rs index f94279a0..a4e085b2 100644 --- a/migration/src/m20230726_162138_drop_rpc_accounting_v2_fk.rs +++ b/migration/src/m20230726_162138_drop_rpc_accounting_v2_fk.rs @@ -6,14 +6,16 @@ pub struct Migration; #[async_trait::async_trait] impl MigrationTrait for Migration { async fn up(&self, manager: &SchemaManager) -> Result<(), DbErr> { - manager + let _ = manager .drop_foreign_key( ForeignKey::drop() .name("rpc_accounting_v2_ibfk_1") .table(RpcAccountingV2::Table) .to_owned(), ) - .await + .await; + + Ok(()) } async fn down(&self, _manager: &SchemaManager) -> Result<(), DbErr> {