Initial curated ITWorx_MCP_Hub source from 368fba691ea8d23403b4d56b53b5ec670d7c5020

This commit is contained in:
Public Source Publisher committed 2026-10-01 01:36:21 +02:00
commit cb5be898ea
663 files changed
+82674

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
from __future__ import annotations
from pathlib import Path
from alembic import command
from alembic.config import Config
from .common import hub_database_url
def run() -> None:
config_path = Path("/opt/hub/infrastructure/database/alembic.ini")
if not config_path.is_file():
config_path = Path("infrastructure/database/alembic.ini").resolve()
config = Config(str(config_path))
config.set_main_option("sqlalchemy.url", hub_database_url().replace("%", "%%"))
command.upgrade(config, "head")