X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=sql%2Fsql.d%2F071-apprentice.sql;h=eb905b7bf710dba1cba64a8d64f94fbc7ed71600;hb=a04917816df17fb43979ecb4299d84ac3ae7e6e7;hp=376427bfcbe6363551779a072d7b25d394fd6ba5;hpb=484a365c1e66ba4b878117275423a1594c209960;p=brisk.git diff --git a/sql/sql.d/071-apprentice.sql b/sql/sql.d/071-apprentice.sql index 376427b..eb905b7 100644 --- a/sql/sql.d/071-apprentice.sql +++ b/sql/sql.d/071-apprentice.sql @@ -6,3 +6,11 @@ CREATE TABLE #PFX#selfreg_chk ( ip integer, -- ip v4 address atime timestamp DEFAULT to_timestamp(0) -- access time ); + +-- +-- Add counters to show how many matches and games are played +-- +ALTER TABLE #PFX#users DROP COLUMN match_cnt; +ALTER TABLE #PFX#users ADD COLUMN match_cnt integer DEFAULT 0; +ALTER TABLE #PFX#users DROP COLUMN game_cnt; +ALTER TABLE #PFX#users ADD COLUMN game_cnt integer DEFAULT 0;