fixed DB update order
This commit is contained in:
+3
-3
@@ -16,13 +16,13 @@
|
|||||||
chdir($rootpath);
|
chdir($rootpath);
|
||||||
require_once('lib2/cli.inc.php');
|
require_once('lib2/cli.inc.php');
|
||||||
|
|
||||||
|
echo "updating db structure ...\n";
|
||||||
|
require('dbsv-update.php');
|
||||||
|
|
||||||
echo "importing data.sql ...\n";
|
echo "importing data.sql ...\n";
|
||||||
system('cat ' . $rootpath . 'doc/sql/static-data/data.sql |' .
|
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']);
|
' 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";
|
echo "importing triggers ...\n";
|
||||||
chdir ($rootpath . 'doc/sql/stored-proc');
|
chdir ($rootpath . 'doc/sql/stored-proc');
|
||||||
system('php maintain.php');
|
system('php maintain.php');
|
||||||
|
|||||||
Reference in New Issue
Block a user