actually add the file

This commit is contained in:
Bryan Stitt 2023-07-26 09:40:29 -07:00
parent 4d8836538d
commit ca9a863138

View File

@ -0,0 +1,28 @@
use sea_orm_migration::prelude::*;
#[derive(DeriveMigrationName)]
pub struct Migration;
#[async_trait::async_trait]
impl MigrationTrait for Migration {
async fn up(&self, manager: &SchemaManager) -> Result<(), DbErr> {
manager
.drop_foreign_key(
ForeignKey::drop()
.name("rpc_accounting_v2_ibfk_1")
.table(RpcAccountingV2::Table)
.to_owned(),
)
.await
}
async fn down(&self, _manager: &SchemaManager) -> Result<(), DbErr> {
Ok(())
}
}
/// Learn more at https://docs.rs/sea-query#iden
#[derive(Iden)]
enum RpcAccountingV2 {
Table,
}