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:
Ethan Girouard 2024-05-16 21:58:49 -04:00
commit 26c34e0012
4 changed files with 5 additions and 0 deletions

View File

@ -0,0 +1 @@
ALTER TABLE albums DROP COLUMN image_path;

View File

@ -0,0 +1 @@
ALTER TABLE albums ADD COLUMN image_path VARCHAR;

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>,
}
}