actually add the file
This commit is contained in:
parent
4d8836538d
commit
ca9a863138
28
migration/src/m20230726_162138_drop_rpc_accounting_v2_fk.rs
Normal file
28
migration/src/m20230726_162138_drop_rpc_accounting_v2_fk.rs
Normal 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,
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user