From 986bb11a13fde495a59b02114c71b597cd049d6a Mon Sep 17 00:00:00 2001 From: amtoaer Date: Wed, 27 Mar 2024 23:25:31 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=95=B0=E6=8D=AE=E5=BA=93=E5=AE=9A?= =?UTF-8?q?=E4=B9=89=E5=8A=A0=E5=85=A5=20upper=20=E5=A4=B4=E5=83=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- entity/src/entities/video.rs | 1 + migration/src/m20240322_000001_create_table.rs | 2 ++ 2 files changed, 3 insertions(+) diff --git a/entity/src/entities/video.rs b/entity/src/entities/video.rs index ee850ff..7f70804 100644 --- a/entity/src/entities/video.rs +++ b/entity/src/entities/video.rs @@ -10,6 +10,7 @@ pub struct Model { pub favorite_id: i32, pub upper_id: i32, pub upper_name: String, + pub upper_face: String, pub name: String, pub path: String, pub category: i32, diff --git a/migration/src/m20240322_000001_create_table.rs b/migration/src/m20240322_000001_create_table.rs index 722c1dc..12d65d5 100644 --- a/migration/src/m20240322_000001_create_table.rs +++ b/migration/src/m20240322_000001_create_table.rs @@ -51,6 +51,7 @@ impl MigrationTrait for Migration { .col(ColumnDef::new(Video::FavoriteId).unsigned().not_null()) .col(ColumnDef::new(Video::UpperId).unsigned().not_null()) .col(ColumnDef::new(Video::UpperName).string().not_null()) + .col(ColumnDef::new(Video::UpperFace).string().not_null()) .col(ColumnDef::new(Video::Name).string().not_null()) .col(ColumnDef::new(Video::Path).string().not_null()) .col(ColumnDef::new(Video::Category).small_unsigned().not_null()) @@ -164,6 +165,7 @@ enum Video { FavoriteId, UpperId, UpperName, + UpperFace, Name, Path, Category,