Quick django models update
Last changed on
(Another) quick post about the cleaning up currently happening on the Tech tree. Some sciences are now gone and others have appeared:
- Gone: either because I did not like them (clear minority of cases) or because they are in the process of becoming blueprints (vast majority of cases)
- Appeared: to try and start filling in some gaps. It's not just about mechanics though, there are some new sciences in there with nice flavour :-)
That's the visible part.
The invisible part being that I just migrated the database; it now contains the skeletons (i.e., empty tables) for the following applications:
| Application | What's changed/new? |
|---|---|
attribute | The attributes shared by all entities. Ultra-mega normalised, Brejnev's wet dream. |
engine | Several interesting initial models in here: Unit (not to add apples and oranges), DamageType, MovementMedium and DetectionMedium. |
science | The application already existed of course, but is now enriched with Blueprint and its various corrolaries/children. |
entity | EntityType with its myriad of parameters. |
faction | Faction of course, but also its various relationships with Science, Aspect, Blueprints, etc. |
skills | the models Skill and SkillStance cover individual entity experience but also intent. |
I also kind of f***ed up and desynchronised my migrations files and the database on local; so my hand was forced (I did not want to fix on local and forget when production time came) and I had to trash everything locally, keeping careful notes and apply the same changes here on production (cleaning/resetting the django_migrations table and dropping a few tables as well. A bit painful and stressful but now migrations are as flat and beautiful as a sea of 0001_initial.py files. Noice. :-)
Good thing I have those spreadsheets…
And this paves the way for…
…several things:
- Of course some posts giving more details about the applications and models above
- New pages… although I am not quite sure where engine, entity, etc should go. A new menu category perhaps?
- For me, the time to start and populate all this; there is already quite a bit done but I am not nearly satisfied yet!
Update: also upgraded the Cloudflare tokens code. Hopefully it works more reliably than before…
Another update: just pushed a fix for absolutely wrong calculations of subsatellites equilibrium temperatures. Before: flux was taken from the star's distance, power output, etc. Fine. BUT: the distance used to calculate it was the subsatellite orbit around its parent planet, which resulted in slightly smaller radii, and so "slightly" elevated equilibrium and surface temperatures, reaching into the thousands of Kelvin. Cascade effect: the atmospheric compositions, potential deposition, etc. were totally wrong! Of dear oh dear…
Please signin to add your comment.