summaryrefslogtreecommitdiff
path: root/upgrade.php
diff options
context:
space:
mode:
authorMW <joasch@users.sourceforge.net>2007-12-07 22:32:28 +0000
committerMW <joasch@users.sourceforge.net>2007-12-07 22:32:28 +0000
commit16bec360073c0df7f6fd3c88b5fa43cd53ee854a (patch)
tree2b64d886c737f13fcae015597ab0b257a8ff7f4d /upgrade.php
parenta5e7bfbfe905d1debfc21e2625fb7fe4455d231a (diff)
downloadinstall-16bec360073c0df7f6fd3c88b5fa43cd53ee854a.tar.gz
install-16bec360073c0df7f6fd3c88b5fa43cd53ee854a.tar.bz2
install-16bec360073c0df7f6fd3c88b5fa43cd53ee854a.zip
Support code to make it possible to upgrade a mysql db to use InnoDb engine.
Does nothing yet until other parts been committed.
Diffstat (limited to 'upgrade.php')
-rw-r--r--upgrade.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/upgrade.php b/upgrade.php
index 3f350f2..c916350 100644
--- a/upgrade.php
+++ b/upgrade.php
@@ -1,6 +1,6 @@
<?php
/**
- * @version $Header: /cvsroot/bitweaver/_bit_install/upgrade.php,v 1.6 2006/11/10 20:55:29 spiderr Exp $
+ * @version $Header: /cvsroot/bitweaver/_bit_install/upgrade.php,v 1.7 2007/12/07 22:32:28 joasch Exp $
* @package install
* @subpackage upgrade
*/
@@ -44,11 +44,17 @@ $install_file[$i]['name'] = 'Upgrade Complete';
if( !isset( $_SESSION['upgrade'] ) || $_SESSION['upgrade'] != TRUE ||
!isset( $_SERVER['HTTP_REFERER'] ) ||
isset( $_SERVER['HTTP_REFERER'] ) &&
- ( ( !strpos( $_SERVER['HTTP_REFERER'],'install/install.php' ) ) && ( !strpos( $_SERVER['HTTP_REFERER'],'install/upgrade.php' ) ) && ( !strpos( $_SERVER['HTTP_REFERER'],'install/migrate.php' ) ) )
+ ( ( !strpos( $_SERVER['HTTP_REFERER'],'install/install.php' ) ) && ( !strpos( $_SERVER['HTTP_REFERER'],'install/upgrade.php' ) ) && ( !strpos( $_SERVER['HTTP_REFERER'],'install/migrate.php' ) ) )
) {
header( 'Location: '.INSTALL_PKG_URL.'install.php' );
die;
}
+// For MySql only, if server supports InnoDB Engine and
+// if it was selected as storage type, we set a session var
+// for use in update_packages.php
+if( isset( $_REQUEST['use_innodb'] ) ) {
+ $_SESSION['use_innodb'] = TRUE;
+}
// finally we are ready to include the actual php file
include_once( 'upgrade_'.$install_file[$step]['file'].'.php' );