If the user stops the addon while GismoCaster is still initializing the
db, at the next reboot the DB initialization won't be repeated and the
user will face a login issue (as per missing admin user).
So, consider as initialized a DB only in the case that the setup process
is completed, and not as soon as the sqlite3 file is created.
Using a versioned stub file, so that this codepath can be adapted in
future if only migrations will be needed.
If the user stops the addon while GismoCaster is still initializing the db, at the next reboot the DB initialization won't be repeated and the user will face a login issue (as per missing admin user).
So, consider as initialized a DB only in the case that the setup process is completed, and not as soon as the sqlite3 file is created.
Using a versioned stub file, so that this codepath can be adapted in future if only migrations will be needed.