Empire resources update
* Added a new update that computes the amount of resources possessed and owed by empires. At the moment this computation ignores fleets, as their upkeep does not use the resource system.
This commit is contained in:
parent
b49bc1a44f
commit
04e550709a
4 changed files with 186 additions and 2 deletions
legacyworlds-server-data/db-structure/tests/user/050-updates/015-empire-resources
|
@ -0,0 +1,11 @@
|
|||
/*
|
||||
* Test privileges on sys.process_empire_resources_updates()
|
||||
*/
|
||||
BEGIN;
|
||||
SELECT plan( 1 );
|
||||
|
||||
SELECT diag_test_name( 'sys.process_empire_resources_updates() - Privileges' );
|
||||
SELECT throws_ok( 'SELECT sys.process_empire_resources_updates( 1 )' , 42501 );
|
||||
|
||||
SELECT * FROM finish( );
|
||||
ROLLBACK;
|
Reference in a new issue