Skip to content

Commit

Permalink
fix(migrations): enable user migration (#304)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsonck92 authored Sep 5, 2024
1 parent 8ce4959 commit dff4f10
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions migrations/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ mod m20240718_000009_create_grouppermission;
mod m20240718_000010_create_userpermission;
mod m20240726_000001_normalize_schema;
mod m20240807_000001_add_segmentation_column;
mod m20240905_000001_add_user_active_admin_fields;

#[async_trait::async_trait]
impl MigratorTrait for Migrator {
Expand All @@ -42,6 +43,7 @@ impl MigratorTrait for Migrator {
Box::new(m20240718_000010_create_userpermission::Migration),
Box::new(m20240726_000001_normalize_schema::Migration),
Box::new(m20240807_000001_add_segmentation_column::Migration),
Box::new(m20240905_000001_add_user_active_admin_fields::Migration),
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use sea_orm_migration::prelude::*;

use crate::models::v1::User;

#[derive(DeriveEntityModel)]
#[derive(DeriveMigrationName)]
pub struct Migration;

#[async_trait::async_trait]
Expand Down Expand Up @@ -56,5 +56,7 @@ impl MigrationTrait for Migration {
.to_owned(),
)
.await?;

Ok(())
}
}

0 comments on commit dff4f10

Please sign in to comment.