Skip to content

Commit d8b477b

Browse files
committed
fix: skip unnecessary upgrade step for empty db
Signed-off-by: Matthias Büchse <[email protected]>
1 parent 96dcbf7 commit d8b477b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compliance-monitor/sql.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,8 @@ def db_upgrade_schema(conn: connection, cur: cursor):
199199
if current is None:
200200
# this is an empty db, but it also used to be the case with v1
201201
# I (mbuechse) made sure manually that the value v1 is set on running installations
202-
db_ensure_schema_v3(cur)
203-
db_set_schema_version(cur, 'v3')
202+
db_ensure_schema_v4(cur)
203+
db_set_schema_version(cur, 'v4')
204204
conn.commit()
205205
elif current == 'v1':
206206
db_ensure_schema_v2(cur)

0 commit comments

Comments
 (0)