feat(bot): ✨ Finish migrating to k8s.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import aerich
|
||||
import os
|
||||
|
||||
from payphone import bot
|
||||
from payphone.db import setup
|
||||
@@ -19,10 +19,7 @@ async def init() -> None:
|
||||
"""Initializes the DB."""
|
||||
|
||||
if config.SHARD_ID == 0:
|
||||
command = aerich.Command(config.TORTOISE_ORM, "models", "./payphone/db/migrations")
|
||||
|
||||
await command.init_db(True)
|
||||
await command.upgrade()
|
||||
os.system("aerich upgrade")
|
||||
|
||||
await setup.init()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user