Merge branch '39-add-images-to-albums' into 'main'

Add image_path column to albums table

Closes #39

See merge request libretunes/libretunes!25
This commit is contained in:
2024-05-16 21:58:49 -04:00
4 changed files with 5 additions and 0 deletions

View File

@ -177,6 +177,8 @@ pub struct Album {
pub title: String,
/// The album's release date
pub release_date: Option<Date>,
/// The path to the album's image file
pub image_path: Option<String>,
}
impl Album {

View File

@ -12,6 +12,7 @@ diesel::table! {
id -> Int4,
title -> Varchar,
release_date -> Nullable<Date>,
image_path -> Nullable<Varchar>,
}
}