fmasa / wfrp-master

Unofficial Android companion app for 4th edition of Warhammer Fantasy Roleplay
GNU General Public License v3.0
11 stars 3 forks source link

Migrate default values to old Character/Party fields #134

Closed fmasa closed 1 year ago

fmasa commented 1 year ago

As new fields are introduced to Party and Character objects, the database rules now must support them as optional because of old entries in the database. This PR fills these top-level fields with default values so that I can reduce this complexity.

This also allows us to improve the performance of some queries as we can filter in Firestore instead of the app.