Resources information on planet list

* Added resource information records to the planet list's response.

* Added a database view and the corresponding row mapper and DAO method
which can be used as the data source for the planet list's resource
information. For now this view always returns 0 for both civilian and
military investments.

* Added new tab to display resource information on the planet list page.
The old version of the economy tab will be kept until the corresponding
data no longer exists.

* The following SQL scripts must be re-executed to upgrade a database:
  -> 040-functions/167-planet-list.sql
This commit is contained in:
Emmanuel BENOîT 2012-02-15 14:45:43 +01:00
parent bf6bea5a79
commit 96670d45be
15 changed files with 1079 additions and 31 deletions
legacyworlds-server-data/db-structure/tests/user/040-functions/167-planet-list

View file

@ -0,0 +1,11 @@
/*
* Test privileges on emp.plist_resources_view
*/
BEGIN;
SELECT plan( 1 );
SELECT diag_test_name( 'emp.plist_resources_view - SELECT privilege' );
SELECT lives_ok( 'SELECT * FROM emp.plist_resources_view' );
SELECT * FROM finish( );
ROLLBACK;