projects
/
carveJwlIkooP6JGAAIwe30JlM.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f6bc129
)
PRIMARY KEY -> UNIQUE (sqlite)
author
hgn
<hgodden00@gmail.com>
Mon, 30 Oct 2023 00:04:09 +0000
(
00:04
+0000)
committer
hgn
<hgodden00@gmail.com>
Mon, 30 Oct 2023 00:04:09 +0000
(
00:04
+0000)
gameserver_db.h
patch
|
blob
|
history
diff --git
a/gameserver_db.h
b/gameserver_db.h
index b7f3360f52899d45cc27e8631b1a0a4fc3da8348..55a4f4775cf80cc7df33d5028d8a05580c64555b 100644
(file)
--- 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;