This repository has been archived on 2025-01-04. You can view files and clone it, but cannot push or open issues or pull requests.
lwb6/legacyworlds-server-data/db-structure/parts/040-functions
Emmanuel BENOîT bf6bea5a79 Extracted quantities update as soon as possible
* The quantities of resources extracted from mines will now be updated
as soon as they have a reason to. This includes planet assignment,
abandonment, ownership changes, and updates to mining priorities.

* The mining update will now remove the current resource income from the
providers, and only then re-compute all extracted quantities. This is
more logical and corresponds to the way the other game updates work.

* Fixed bug in extraction computation where the size of the planet's
happy population was used instead of the happy/total ratio when
adjusting the mining production for riots.

* The following SQL scripts must be re-executed to upgrade a database:
  -> 040-functions/040-empire.sql
  -> 040-functions/145-resource-providers.sql
  -> 040-functions/147-empire-mining.sql
  -> 050-updates/120-planet-mining.sql
2012-02-09 10:54:00 +01:00
..
000-defs.sql Database definition & tests organisation 2012-01-06 11:19:19 +01:00
002-sys.sql Database definition & tests organisation 2012-01-06 11:19:19 +01:00
003-updates.sql Game updates improvements 2012-02-03 16:25:03 +01:00
005-logs.sql SQL logging fixes 2012-01-07 11:14:17 +01:00
010-constants.sql Database definition & tests organisation 2012-01-06 11:19:19 +01:00
020-naming.sql Database definition & tests organisation 2012-01-06 11:19:19 +01:00
025-resources.sql In-game resources views 2012-02-04 10:43:12 +01:00
030-tech.sql Database definition & tests organisation 2012-01-06 11:19:19 +01:00
035-users.sql Database definition & tests organisation 2012-01-06 11:19:19 +01:00
040-empire.sql Extracted quantities update as soon as possible 2012-02-09 10:54:00 +01:00
050-computation.sql Production adjustment fix 2012-02-08 15:38:12 +01:00
053-generator-basics.sql Database definition & tests organisation 2012-01-06 11:19:19 +01:00
055-generator-resources.sql SQL logging fixes 2012-01-07 11:14:17 +01:00
060-universe.sql Game updates improvements 2012-02-03 16:25:03 +01:00
070-users.sql Database definition & tests organisation 2012-01-06 11:19:19 +01:00
075-session.sql Database definition & tests organisation 2012-01-06 11:19:19 +01:00
080-buildings.sql Database definition & tests organisation 2012-01-06 11:19:19 +01:00
100-status.sql Database definition & tests organisation 2012-01-06 11:19:19 +01:00
110-prefs.sql Database definition & tests organisation 2012-01-06 11:19:19 +01:00
120-map.sql Database definition & tests organisation 2012-01-06 11:19:19 +01:00
140-planets.sql Planet mining settings interface 2012-02-07 17:03:55 +01:00
145-resource-providers.sql Extracted quantities update as soon as possible 2012-02-09 10:54:00 +01:00
147-empire-mining.sql Extracted quantities update as soon as possible 2012-02-09 10:54:00 +01:00
150-battle.sql Database definition & tests organisation 2012-01-06 11:19:19 +01:00
160-battle-views.sql Database definition & tests organisation 2012-01-06 11:19:19 +01:00
163-alliance.sql Database definition & tests organisation 2012-01-06 11:19:19 +01:00
165-fleets.sql Database definition & tests organisation 2012-01-06 11:19:19 +01:00
167-planet-list.sql Database definition & tests organisation 2012-01-06 11:19:19 +01:00
170-events.sql Database definition & tests organisation 2012-01-06 11:19:19 +01:00
180-messages.sql Database definition & tests organisation 2012-01-06 11:19:19 +01:00
190-admin.sql Database definition & tests organisation 2012-01-06 11:19:19 +01:00
200-bugs.sql Mining settings in XML dumps 2012-01-19 10:28:12 +01:00
210-admin-overview.sql Database definition & tests organisation 2012-01-06 11:19:19 +01:00