Fix for active browser list on new db, #201

pull/218/head
AlUlkesh 2023-06-06 08:09:09 +02:00
parent 25e5a3016d
commit e2e35a88c0
1 changed files with 2 additions and 0 deletions

View File

@ -427,6 +427,7 @@ def check():
print("Image Browser: Creating database")
create_db(cursor)
update_db_data(cursor, "version", version)
update_db_data(cursor, "last_default_tab", "Maintenance")
migrate_path_recorder(cursor)
migrate_exif_data(cursor)
migrate_ranking(cursor)
@ -448,6 +449,7 @@ def check():
migrate_work_files(cursor)
if db_version[0] <= "6":
update_db_data(cursor, "last_default_tab", "Others")
update_db_data(cursor, "version", version)
print(f"Image Browser: Database upgraded from version {db_version[0]} to version {version}")
transaction_end(conn, cursor)