Lan
2026-01-07 19:50:02 +08:00
parent ebbf08f06e
commit 830dd65f6a
4 changed files with 246 additions and 155 deletions
+14
View File
@@ -0,0 +1,14 @@
from tortoise import connections
async def add_save_path_to_uploadchunk():
conn = connections.get("default")
await conn.execute_script(
"""
ALTER TABLE uploadchunk ADD COLUMN save_path VARCHAR(512) NULL;
"""
)
async def migrate():
await add_save_path_to_uploadchunk()