diff --git a/bin/dbupdate.php b/bin/dbupdate.php index 4208d759..04693cae 100644 --- a/bin/dbupdate.php +++ b/bin/dbupdate.php @@ -16,13 +16,13 @@ chdir($rootpath); require_once('lib2/cli.inc.php'); + echo "updating db structure ...\n"; + require('dbsv-update.php'); + echo "importing data.sql ...\n"; system('cat ' . $rootpath . 'doc/sql/static-data/data.sql |' . ' mysql -h' . $opt['db']['servername'] . ' -u' . $opt['db']['username'] . ' --password=' . $opt['db']['password'] . ' ' . $opt['db']['placeholder']['db']); - echo "updating db structure ...\n"; - require('dbsv-update.php'); - echo "importing triggers ...\n"; chdir ($rootpath . 'doc/sql/stored-proc'); system('php maintain.php');