Skip to content

Commit

Permalink
chg: [bin] Updated update command of vulnerability-lookup: any databa…
Browse files Browse the repository at this point in the history
…se upgrades are now performed during the update process.
  • Loading branch information
cedricbonhomme committed Jul 9, 2024
1 parent 615a7e3 commit b324aad
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bin/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ def main() -> None:
keep_going(args.yes)
run_command(f'poetry run {(Path("tools") / "validate_config_files.py").as_posix()} --update')

print('* Migrate database.')
keep_going(args.yes)
run_command('poetry run flask --app website.app db upgrade')

print('* Restarting')
keep_going(args.yes)
if platform.system() == 'Windows':
Expand Down

0 comments on commit b324aad

Please sign in to comment.