OpenEnergyPlatform / open-MaStR

A collaborative software to download the energy database Marktstammdatenregister (MaStR)
https://open-mastr.readthedocs.io/en/latest/
GNU Affero General Public License v3.0
83 stars 17 forks source link

Dynamically add new tables to existing databases #516

Open FlorianK13 opened 4 months ago

FlorianK13 commented 4 months ago

If new tables are introduced by BNetzA, the current code cannot simply add them to an existing database. For example, when running db.download() and there is already a database initialized, a new table will cause an error. This should be changed, ie. new tables should be added automatically.

They should take the name from orm.py if the new table is already part of a new open-mastr release. Or they should just use the german name otherwise.

nesnoj commented 1 month ago

An automatic creation be great, but the value replacement (e.g. 4=biomass) should be added too.