[db] Store start time in admin table
This commit is contained in:
parent
38ab4b9676
commit
f49a3c888a
1
src/db.c
1
src/db.c
|
@ -6352,6 +6352,7 @@ db_init(void)
|
|||
|
||||
files = db_files_get_count();
|
||||
pls = db_pl_get_count();
|
||||
db_admin_setint64(ADMIN_START_TIME, (int64_t) time(NULL));
|
||||
|
||||
db_perthread_deinit();
|
||||
|
||||
|
|
1
src/db.h
1
src/db.h
|
@ -68,6 +68,7 @@ enum query_type {
|
|||
#define ADMIN_SCHEMA_VERSION "schema_version"
|
||||
#define ADMIN_QUEUE_VERSION "queue_version"
|
||||
#define ADMIN_DB_UPDATE "db_update"
|
||||
#define ADMIN_START_TIME "start_time"
|
||||
#define ADMIN_LASTFM_SESSION_KEY "lastfm_sk"
|
||||
#define ADMIN_SPOTIFY_REFRESH_TOKEN "spotify_refresh_token"
|
||||
|
||||
|
|
Loading…
Reference in New Issue