Apply pending migrations
(db: C, steps: Option<u32>)
| 228 | |
| 229 | /// Apply pending migrations |
| 230 | async fn up<'c, C>(db: C, steps: Option<u32>) -> Result<(), DbErr> |
| 231 | where |
| 232 | C: IntoSchemaManagerConnection<'c>, |
| 233 | { |
| 234 | exec_with_connection::<'_, _, _>(db, move |manager| { |
| 235 | Box::pin(async move { exec_up::<Self>(manager, steps).await }) |
| 236 | }) |
| 237 | .await |
| 238 | } |
| 239 | |
| 240 | /// Rollback applied migrations |
| 241 | async fn down<'c, C>(db: C, steps: Option<u32>) -> Result<(), DbErr> |
no outgoing calls
no test coverage detected