Skip to content

Commit

Permalink
flux-accounting DB: update schema version
Browse files Browse the repository at this point in the history
Problem: The schema for the flux-accounting DB has been changed as a
result of flux-framework#357.

Update the schema version for the flux-accounting DB in __init__.py.in
and in the front-end flux-account-service.py script.
  • Loading branch information
cmoussa1 committed Jun 30, 2023
1 parent 7dc4eb3 commit d0ff370
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/bindings/python/fluxacct/accounting/__init__.py.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
db_dir = "@X_LOCALSTATEDIR@/lib/flux/"
db_path = "@X_LOCALSTATEDIR@/lib/flux/FluxAccounting.db"
db_schema_version = 20
db_schema_version = 21

__all__ = ["db_dir", "db_path", "db_schema_version"]
2 changes: 1 addition & 1 deletion src/cmd/flux-account-service.py
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ def main():
cur = conn.cursor()
cur.execute("PRAGMA user_version")
db_version = cur.fetchone()[0]
if db_version < 20:
if db_version < 21:
LOGGER.error(
"flux-accounting database out of date; please update DB with 'flux account-update-db' before running commands"
)
Expand Down

0 comments on commit d0ff370

Please sign in to comment.