oc-server3/bin/dbupdate.php
2012-08-16 21:04:13 +02:00

30 lines
819 B
PHP

#!/usr/bin/php
<?php
/***************************************************************************
* For license information see doc/license.txt
*
* Unicode Reminder メモ
***************************************************************************/
/*
* 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');
?>