Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use super::Migration;
#[doc = "Migrations for 0.5.0"]
pub(super) async fn migrate<'a, C>(connection: &'a C) -> Result<(), geekorm::Error>
where
    C: geekorm::GeekConnection<Connection = C> + 'a,
{
    let mut projects = crate::models::projects::Projects::fetch_all(connection).await?;
    for project in &mut projects {
        project.updated_at = chrono::Utc::now();
        project.save(connection).await?;
    }

    todo!("Migrate the database to version ")
}