wishthis icon indicating copy to clipboard operation
wishthis copied to clipboard

Make wishtish installable without user-interaction

Open rndmh3ro opened this issue 1 year ago • 2 comments

Is your feature request related to a problem? Please describe

I want to provide and use wishthis with yunohost - a system to self-host applications.

In it I want to make wishthis fully installable without user interaction. Currently the database-setup happens (as far as I can tell) in the setup-phase after installing.

Describe the solution you'd like

What I'd like to do is decouple the database-setup from the installation of wishlist.

I think to do this, the creation of the tables inside the database should not happen (exclusively) via code. Instead I'd like to creat the tables separately.

For me two things would need to happen:

  • Put the table-creation statements into a sql-file (just like the migration-scripts so they can be run separately from the setup
  • provide an option to skip the setup completely, maybe by setting a variable like preconfigured_install in the config.php. Then I'd have to set this variable, apply all the sql-statements and then it should work.

What do you think about this idea?

Describe alternatives you've considered

Disclaimer

wishthis is entirely built in my free time, mostly without any pay or code contributors. While I am doing my best to make wishthis a great product for everybody, adding new features takes up my free time outside of my full time job.

  • [x] I understand that wishthis depends on volunteer work and that I am not entitled to any kind of support

rndmh3ro avatar Nov 11 '24 19:11 rndmh3ro

Hey @rndmh3ro,

thank you for your suggestion!

What do you think about this idea?

I'm not familiar with yunohost but generally don't mind changing the installer to make it more compatible with external software.

grandeljay avatar Nov 12 '24 09:11 grandeljay

Hi all, Yes, if we could just put something like ynh_mysql_db_shell < $install_dir/src/sql/schema_mysql.sql in the YunoHost package install script, that would be really nice!

dragondaddy avatar Nov 16 '24 22:11 dragondaddy