Hi!
I’m in the process of fixing the upgrade-script of invoiceninja: https://github.com/YunoHost-Apps/invoiceninja_ynh/pull/4
The app is a laravel php app with a MySQL-database. The tables inside the database get created after logging in into the app. Before that the database is empty.
During the upgrade database-migrations happen. In a normal scenario (not when testing) these migrations work, because there are tables inside the database that can be changed.
However when running the upgrade with package_check, the database migrations fail, because the tables were never created (because nobody logged in into the app).
How does one solve this issue with package_check?
I could just skip the upgrade-test but I’d rather not.
I could probably somehow login into the app non-interactively, but since the app doesn’t support LDAP, I have no known credentials.
There is no artisan-task to create the tables if they do not exist.
Any other ideas?