]> de.git.xonotic.org Git - xonotic/xonstatdb.git/commitdiff
Make the server hashkey an attribute instead of its own table.
authorAnt Zucaro <azucaro@gmail.com>
Mon, 31 Oct 2011 00:44:34 +0000 (20:44 -0400)
committerAnt Zucaro <azucaro@gmail.com>
Mon, 31 Oct 2011 00:44:34 +0000 (20:44 -0400)
build/build_full.sql
tables/servers.tab

index 9a0fabb571f5b7c96251c2a4d56eb6e641f05169..d77d3238f764f27cf3ecbd274376b8696b9e6080 100755 (executable)
@@ -1,5 +1,4 @@
 -- drop tables first in reverse order
-drop table if exists server_hashkeys cascade;
 drop table if exists player_nicks cascade;
 drop table if exists db_version cascade;
 drop table if exists hashkeys cascade;
@@ -34,7 +33,6 @@ drop table if exists players cascade;
 \i tables/hashkeys.tab
 \i tables/db_version.tab
 \i tables/player_nicks.tab
-\i tables/server_hashkeys.tab
 
 begin;
 
index 46e227983d8fc3893e75defb5313e597c22d8d18..0bc4bbac54c336e4a32cae3c41c062b8d723d9be 100644 (file)
@@ -4,7 +4,7 @@ CREATE TABLE xonstat.servers
   "name" character varying(64),
   "location" character varying(100),
   ip_addr character varying(32),
-  max_players integer,
+  hashkey character varying(44),
   public_key character varying(725),
   revision character varying(50),
   pure_ind boolean NOT NULL DEFAULT true,