add media_group_id column to media table

This commit is contained in:
Akulij 2025-04-18 13:13:30 +03:00
parent ffb2b8b7fe
commit 95cc880b4f
4 changed files with 5 additions and 0 deletions

View File

@ -0,0 +1 @@
ALTER TABLE media DROP COLUMN media_group_id;

View File

@ -0,0 +1,2 @@
ALTER TABLE media ADD COLUMN media_group_id VARCHAR NOT NULL;

View File

@ -31,6 +31,7 @@ pub struct Media {
pub token: String, pub token: String,
pub media_type: String, pub media_type: String,
pub file_id: String, pub file_id: String,
pub media_group_id: String,
} }
#[derive(Queryable, Debug, Identifiable)] #[derive(Queryable, Debug, Identifiable)]

View File

@ -22,6 +22,7 @@ diesel::table! {
token -> Varchar, token -> Varchar,
media_type -> Varchar, media_type -> Varchar,
file_id -> Varchar, file_id -> Varchar,
media_group_id -> Varchar,
} }
} }