developer system settings and tools

This commit is contained in:
following
2012-08-09 17:06:01 +02:00
parent 8c5492dd62
commit af9b0ab004
3 changed files with 429 additions and 0 deletions

23
bin/dbupdate.php Normal file
View File

@ -0,0 +1,23 @@
#!/usr/bin/php
<?php
/*
* update of static data and triggers in developer system
*
* Tables must be updated manually, see htdocs/doc/sql/db-changes.txt
*/
require('htdocs/util/mysql_root/settings.inc.php');
echo "importing data.sql ...\n";
chdir ('htdocs/doc/sql');
system('cat static-data/data.sql | mysql -uroot --password=' . $db_root_password . ' opencaching');
echo "importing triggers ...\n";
chdir('stored-proc');
system('php maintain.php');
echo "resettings webcache ...\n";
chdir('../../../../bin');
system('php clear-webcache.php');
?>