Add image_path column to albums table

This commit is contained in:
Ethan Girouard 2024-05-16 18:13:14 -04:00
parent 60ad643669
commit cc4aee4ab4
Signed by: eta357
GPG Key ID: 7BCDC36DFD11C146
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>,
}
}