Add check for database existing before migrations

Fixes #38
This commit is contained in:
Joshua M. Boniface 2022-11-17 10:48:32 -05:00
parent 6ea8b23816
commit 6a6c9c4f4a

View file

@ -490,6 +490,9 @@ def run_control(config):
"""
rffmpeg CLI interface
"""
if not Path(config["state_dir"]).is_dir() or not Path(config["db_path"]).is_file():
return
# List all DB migrations here
did_alter_0001AddServername = False
# Check conditions for migrations