mirror of
https://github.com/amtoaer/bili-sync.git
synced 2026-08-25 18:25:51 +08:00
fix: 数据库定义加入 upper 头像
This commit is contained in:
@@ -10,6 +10,7 @@ pub struct Model {
|
|||||||
pub favorite_id: i32,
|
pub favorite_id: i32,
|
||||||
pub upper_id: i32,
|
pub upper_id: i32,
|
||||||
pub upper_name: String,
|
pub upper_name: String,
|
||||||
|
pub upper_face: String,
|
||||||
pub name: String,
|
pub name: String,
|
||||||
pub path: String,
|
pub path: String,
|
||||||
pub category: i32,
|
pub category: i32,
|
||||||
|
|||||||
@@ -51,6 +51,7 @@ impl MigrationTrait for Migration {
|
|||||||
.col(ColumnDef::new(Video::FavoriteId).unsigned().not_null())
|
.col(ColumnDef::new(Video::FavoriteId).unsigned().not_null())
|
||||||
.col(ColumnDef::new(Video::UpperId).unsigned().not_null())
|
.col(ColumnDef::new(Video::UpperId).unsigned().not_null())
|
||||||
.col(ColumnDef::new(Video::UpperName).string().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::Name).string().not_null())
|
||||||
.col(ColumnDef::new(Video::Path).string().not_null())
|
.col(ColumnDef::new(Video::Path).string().not_null())
|
||||||
.col(ColumnDef::new(Video::Category).small_unsigned().not_null())
|
.col(ColumnDef::new(Video::Category).small_unsigned().not_null())
|
||||||
@@ -164,6 +165,7 @@ enum Video {
|
|||||||
FavoriteId,
|
FavoriteId,
|
||||||
UpperId,
|
UpperId,
|
||||||
UpperName,
|
UpperName,
|
||||||
|
UpperFace,
|
||||||
Name,
|
Name,
|
||||||
Path,
|
Path,
|
||||||
Category,
|
Category,
|
||||||
|
|||||||
Reference in New Issue
Block a user