Lan committed 2026-01-07 19:50:02 +08:00
1 parent 69972e28b3
commit e80be564a5
4 files changed
+246 -155

No files matched your search

+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()