From d582f969b49dc74365f0e211f989977f4ec5a0fa Mon Sep 17 00:00:00 2001 From: orhtej2 <2871798+orhtej2@users.noreply.github.com> Date: Mon, 23 Oct 2023 21:51:12 +0200 Subject: [PATCH] Run db migrations to seed the database. --- scripts/install | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/install b/scripts/install index 3fa7318..d458b30 100755 --- a/scripts/install +++ b/scripts/install @@ -65,6 +65,14 @@ ynh_add_config --template="../conf/.env.example" --destination="$install_dir/.en chmod 600 $install_dir/.env chown $app:www-data "$install_dir/.env" +#================================================= +# RUN MIGRATIONS +#================================================= + +pushd $install_dir + sudo -u $app php${phpversion} spark migrate +popd + #================================================= # END OF SCRIPT #=================================================