mirror of
https://github.com/amtoaer/bili-sync.git
synced 2026-06-09 01:30:55 +08:00
feat: 尝试支持视频标签
This commit is contained in:
11
migrations/models/2_20231204003326_update.py
Normal file
11
migrations/models/2_20231204003326_update.py
Normal file
@@ -0,0 +1,11 @@
|
||||
from tortoise import BaseDBAsyncClient
|
||||
|
||||
|
||||
async def upgrade(db: BaseDBAsyncClient) -> str:
|
||||
return """
|
||||
ALTER TABLE "favoriteitem" ADD "tags" JSON;"""
|
||||
|
||||
|
||||
async def downgrade(db: BaseDBAsyncClient) -> str:
|
||||
return """
|
||||
ALTER TABLE "favoriteitem" DROP COLUMN "tags";"""
|
||||
Reference in New Issue
Block a user