Files
InvoiceShelf/resources/scripts/admin
Darko Gjorgjijoski 7e483d06ce fix(installation): support mariadb in the setup wizard (#707)
Backport of InvoiceShelf/InvoiceShelf#704 to 2.x.
Fixes InvoiceShelf/docker#79.

A fresh install using the shipped docker-compose.mysql.yml cannot get past
the database step, because that compose file sets DB_CONNECTION=mariadb.

getDatabaseEnvironment() switched on sqlite, pgsql and mysql with no arm
for mariadb and no default, so it answered {"config":[]}. The wizard
renders <component :is="database_connection">, which resolves to nothing,
so the step came out blank — and nothing reached the log, because the app
never errored, it just replied with nothing.

Adds the mariadb arm plus a default, so an unrecognised driver is echoed
back with server defaults rather than producing an unrenderable response.
MariaDB is registered as an alias of the MySQL form, whose fields are
identical, and offered in each driver picker.

Tested against the original controller, where three of the new cases fail
with "Failed asserting that null is identical to 'mariadb'".
2026-07-29 12:37:41 +02:00
..
2026-04-07 19:00:07 +02:00