Planet resources

* Added missing table that should store a planet's resources data
(income and upkeep for each type of resource).

* Modified resource definition functions and universe generator to
initialise planet resource records as well

* Heavy clean-up in resource definition function unit tests
This commit is contained in:
Emmanuel BENOîT 2012-01-10 12:30:47 +01:00
parent 37555841ce
commit b49bc1a44f
11 changed files with 465 additions and 378 deletions
legacyworlds-server-data/db-structure/tests/user/040-functions/025-resources

View file

@ -0,0 +1,14 @@
/*
* Test privileges on defs.add_resource_records()
*/
BEGIN;
SELECT plan( 1 );
SELECT diag_test_name( 'defs.add_resource_records() - Privileges' );
PREPARE _test_this AS
SELECT defs.add_resource_records( 1 );
SELECT throws_ok( '_test_this' , 42501 );
SELECT * FROM finish( );
ROLLBACK;