修复容器迁移脚本导入路径
This commit is contained in:
@@ -18,6 +18,9 @@ PROJECT_ROOT = Path(__file__).resolve().parents[1]
|
||||
DEFAULT_SOURCE = PROJECT_ROOT / "data" / "web.db"
|
||||
IGNORED_SOURCE_TABLES = {"alembic_version"}
|
||||
|
||||
if str(PROJECT_ROOT) not in sys.path:
|
||||
sys.path.insert(0, str(PROJECT_ROOT))
|
||||
|
||||
|
||||
def parse_args() -> argparse.Namespace:
|
||||
"""解析迁移参数。"""
|
||||
|
||||
Reference in New Issue
Block a user