Skip to content

Commit

Permalink
chore(migrations): final v6 migration
Browse files Browse the repository at this point in the history
  • Loading branch information
IgnisDa committed Aug 16, 2024
1 parent ea0236d commit 2317c9b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/migrations/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ mod m20240805_add_new_section_to_dashboard;
mod m20240810_remove_useless_columns_for_cte;
mod m20240814_aa_new_column_from_anime_calendar_events;
mod m20240814_bb_add_timestamp_column_to_calendar_event;
mod m20240817_is_last_v6_migration;

pub use m20230410_create_metadata::Metadata as AliasedMetadata;
pub use m20230413_create_person::Person as AliasedPerson;
Expand Down Expand Up @@ -115,6 +116,7 @@ impl MigratorTrait for Migrator {
Box::new(m20240810_remove_useless_columns_for_cte::Migration),
Box::new(m20240814_aa_new_column_from_anime_calendar_events::Migration),
Box::new(m20240814_bb_add_timestamp_column_to_calendar_event::Migration),
Box::new(m20240817_is_last_v6_migration::Migration),
]
}
}
15 changes: 15 additions & 0 deletions crates/migrations/src/m20240817_is_last_v6_migration.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
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> {
Ok(())
}

async fn down(&self, _manager: &SchemaManager) -> Result<(), DbErr> {
Ok(())
}
}

0 comments on commit 2317c9b

Please sign in to comment.