diff upgrade_db.php @ 135:9c5e597ef6c6

mod: ログ機能を追加
author epgrec@park.mda.or.jp <yoneda@recorder.localnet.mda.or.jp>
date Sat, 20 Mar 2010 23:59:01 +0900
parents 3bed74eca373
children 481e789605e3
line wrap: on
line diff
--- a/upgrade_db.php	Sat Mar 20 00:49:37 2010 +0900
+++ b/upgrade_db.php	Sat Mar 20 23:59:01 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" );