mirror of
https://github.com/amtoaer/bili-sync.git
synced 2026-06-03 23:00:37 +08:00
feat: 加入状态字段标记不可见和已失效视频,标记后不做重复处理
This commit is contained in:
11
migrations/models/1_20231125130119_update.py
Normal file
11
migrations/models/1_20231125130119_update.py
Normal file
@@ -0,0 +1,11 @@
|
||||
from tortoise import BaseDBAsyncClient
|
||||
|
||||
|
||||
async def upgrade(db: BaseDBAsyncClient) -> str:
|
||||
return """
|
||||
ALTER TABLE "favoriteitem" ADD "status" SMALLINT NOT NULL DEFAULT 1 /* NORMAL: 1\nINVISIBLE: 2\nDELETED: 3 */;"""
|
||||
|
||||
|
||||
async def downgrade(db: BaseDBAsyncClient) -> str:
|
||||
return """
|
||||
ALTER TABLE "favoriteitem" DROP COLUMN "status";"""
|
||||
Reference in New Issue
Block a user