-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
We currently do not distribute the database-2.3.sqlite files along with toolboxes that distribute builtin databases (e.g. brainvisa-share, disco).
As a result, users are prompted to run the database update when BrainVISA is first launched, which is somewhat confusing to new users.
We discussed several options to fix this with @sapetnioc:
- Update the databases at the end of
bv_maker build, and add amake installrule to each project to distribute the resulting files. The drawback is thatmake installfor a given project would fail or potentially install obsolete databases if the project is built manually withmakeinstead ofbv_maker. - Generate the databases as part of the
makerules of each project, and install them with amake installrule. In this case, we have to make sure that all toolboxes for which the project supplies files are installe, i.e. make the project dependent on these toolboxes. Maybe that would create circular dependencies? We also have to add a special-case tobrainvisa.data.sqlFSODatabase.SQLDatabase.checkTables(), ignoring missing tables for builtin databases. - Make the update of these databases silent at BrainVISA startup. That would require moving the sqlite files to a known-writable location, such as
$XDG_CACHE_DIR.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels