From f2e2b3c37719f839bc130625ee0fcf4ef3179750 Mon Sep 17 00:00:00 2001 From: hgn Date: Mon, 30 Oct 2023 00:04:09 +0000 Subject: [PATCH] PRIMARY KEY -> UNIQUE (sqlite) --- gameserver_db.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gameserver_db.h b/gameserver_db.h index b7f3360..55a4f47 100644 --- a/gameserver_db.h +++ b/gameserver_db.h @@ -155,7 +155,7 @@ static int db_writeusertime( char table[DB_TABLE_UID_MAX], u64 steamid, vg_strnull( &q, buf, 512 ); vg_strcat( &q, "CREATE TABLE IF NOT EXISTS \n \"" ); vg_strcat( &q, table ); - vg_strcat( &q, "\"\n (steamid BIGINT PRIMARY KEY, time INT);" ); + vg_strcat( &q, "\"\n (steamid BIGINT UNIQUE, time INT);" ); if( !vg_strgood(&q) ) return 0; vg_str str; -- 2.25.1