From d2dcc1b7cc15e7bd4efb082aaccfee189f6c5e9f Mon Sep 17 00:00:00 2001 From: Ian Docherty Date: Fri, 29 Jun 2012 14:43:43 -0400 Subject: [PATCH] Corrected alliance stats population --- lib/Lacuna.pm | 2 +- lib/Lacuna/DB/Result/Log/Alliance.pm | 2 +- var/upgrades/3.0857.sql | 1 + var/www/public/changes.txt | 3 +++ 4 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 var/upgrades/3.0857.sql diff --git a/lib/Lacuna.pm b/lib/Lacuna.pm index 14e5941f..c2475b4b 100644 --- a/lib/Lacuna.pm +++ b/lib/Lacuna.pm @@ -7,7 +7,7 @@ use Config::JSON; useall __PACKAGE__; -our $VERSION = 3.0856; +our $VERSION = 3.0857; my $config = Config::JSON->new('/data/Lacuna-Server/etc/lacuna.conf'); my $db = Lacuna::DB->connect($config->get('db/dsn'),$config->get('db/username'),$config->get('db/password'), { mysql_enable_utf8 => 1}); diff --git a/lib/Lacuna/DB/Result/Log/Alliance.pm b/lib/Lacuna/DB/Result/Log/Alliance.pm index 9eeeab39..76b70b8a 100644 --- a/lib/Lacuna/DB/Result/Log/Alliance.pm +++ b/lib/Lacuna/DB/Result/Log/Alliance.pm @@ -16,7 +16,7 @@ __PACKAGE__->add_columns( influence => { data_type => 'int', is_nullable => 0 }, influence_rank => { data_type => 'int', is_nullable => 0 }, colony_count => { data_type => 'int', is_nullable => 0 }, - population => { data_type => 'int', size => 11, is_nullable => 0 }, + population => { data_type => 'bigint', is_nullable => 0 }, population_rank => { data_type => 'int', is_nullable => 0 }, average_empire_size => { data_type => 'bigint', is_nullable => 0 }, average_empire_size_rank => { data_type => 'int', is_nullable => 0 }, diff --git a/var/upgrades/3.0857.sql b/var/upgrades/3.0857.sql new file mode 100644 index 00000000..99fbd50e --- /dev/null +++ b/var/upgrades/3.0857.sql @@ -0,0 +1 @@ +alter table alliance_log change population population bigint not null; diff --git a/var/www/public/changes.txt b/var/www/public/changes.txt index 51fcf58c..db941938 100644 --- a/var/www/public/changes.txt +++ b/var/www/public/changes.txt @@ -1,3 +1,6 @@ +3.0857: + - Add: Number of glyphs of each type are now shown in Stats/General + 3.0856: - Mod: DeLambert now offer glyph trades with all the same type -- 2.51.2