Ensure database is changed at each install
Generator of maths worksheets and their detailed solutions
Status: Alpha
Brought to you by:
nico_h
So far, mathmaker creates a copy of mathmaker.db-dist (as mathmaker.db) if mathmaker.db-dist is newer than mathmaker.db. This is not enough, in some cases it does not ensure the replacement of the old version by the newer one.
Possible solutions:
1°) Include the version number in a dedicated field in the database
toolbox/build_db.py
create the copy at the end of its process2°) Looks better: include the version number in the name of the database, like mathmaker-0.7.2dev1.db
toolbox/build_db.py
create the copy including version number in the name, at the end of its process3°) Even better: use a post-install script to create the copy right after install. Check it works also for upgrades.
Diff:
Diff: