From 5c1e7f51ff8b11ebc3bb5c247b8ae549fbf9a70d Mon Sep 17 00:00:00 2001 From: anmol Date: Sun, 11 Nov 2018 01:46:36 +0530 Subject: [PATCH] Added database migration --- scripts/install | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/install b/scripts/install index 2a5f9f8..3f1111e 100755 --- a/scripts/install +++ b/scripts/install @@ -113,6 +113,8 @@ ynh_app_setting_set $app final_path $final_path # Download, check integrity, uncompress and patch the source from app.src ynh_setup_source "$final_path" +# Import database schema +ynh_mysql_connect_as "$db_name" "$db_pwd" "$db_name" < $final_path/schema.sql #================================================= # NGINX CONFIGURATION