mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-15 14:22:55 +08:00
优化代码
This commit is contained in:
parent
fb04f7fffb
commit
a48661745e
@ -181,3 +181,9 @@ class BilibiliSub(Model):
|
|||||||
if x.sub_type == "season":
|
if x.sub_type == "season":
|
||||||
season_data.append(x)
|
season_data.append(x)
|
||||||
return live_data, up_data, season_data
|
return live_data, up_data, season_data
|
||||||
|
|
||||||
|
@classmethod
|
||||||
|
async def _run_script(cls):
|
||||||
|
return [
|
||||||
|
"ALTER TABLE bilibili_sub ALTER COLUMN season_update_time TYPE timestamp with time zone USING season_update_time::timestamp with time zone;",
|
||||||
|
]
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user