Mercurial > epgrec.yaz
diff upgrade_db.php @ 137:a18df712fc7e
merged with upstream
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Sun, 21 Mar 2010 03:15:00 +0900 |
parents | 9c5e597ef6c6 |
children | 481e789605e3 |
line wrap: on
line diff
--- a/upgrade_db.php Mon Mar 15 01:39:14 2010 +0900 +++ b/upgrade_db.php Sun Mar 21 03:15:00 2010 +0900 @@ -4,7 +4,8 @@ chdir( $script_path ); include_once($script_path . '/config.php'); include_once(INSTALL_PATH . '/Settings.class.php' ); - +include_once(INSTALL_PATH . '/DBRecord.class.php' ); +include_once(INSTALL_PATH . '/tableStruct.inc.php' ); // mysqli::multi_queryは動作がいまいちなので使わない @@ -193,6 +194,18 @@ if( multi_query( $sqlstrs, $dbh ) ) { echo "キーワードテーブルのアップデートに失敗\n"; } + + // ログテーブル + + try { + $log = new DBRecord( LOG_TBL ); + $log->createTable( LOG_STRUCT ); + } + catch( Exception $e ) { + echo $e->message; + echo "\n"; + } + } else exit( "DBの接続に失敗\n" );