From: hgn Date: Mon, 30 Oct 2023 00:04:09 +0000 (+0000) Subject: PRIMARY KEY -> UNIQUE (sqlite) X-Git-Url: https://skaterift.com/git/?a=commitdiff_plain;h=f2e2b3c37719f839bc130625ee0fcf4ef3179750;p=carveJwlIkooP6JGAAIwe30JlM.git PRIMARY KEY -> UNIQUE (sqlite) --- 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;