projects
/
carveJwlIkooP6JGAAIwe30JlM.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ignore autogenerated headers
[carveJwlIkooP6JGAAIwe30JlM.git]
/
gameserver_db.h
diff --git
a/gameserver_db.h
b/gameserver_db.h
index b7f3360f52899d45cc27e8631b1a0a4fc3da8348..fe39931af843ae30b3715b6192367193dedc489a 100644
(file)
--- a/
gameserver_db.h
+++ b/
gameserver_db.h
@@
-5,7
+5,6
@@
#include "vg/vg_mem_queue.h"
#include "network_common.h"
#include "dep/sqlite3/sqlite3.h"
#include "vg/vg_mem_queue.h"
#include "network_common.h"
#include "dep/sqlite3/sqlite3.h"
-#include "highscores.h"
#include <pthread.h>
#include <unistd.h>
#include <pthread.h>
#include <unistd.h>
@@
-155,7
+154,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_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;
if( !vg_strgood(&q) ) return 0;
vg_str str;