本文整理汇总了PHP中Migration::modifyDatabase方法的典型用法代码示例。如果您正苦于以下问题:PHP Migration::modifyDatabase方法的具体用法?PHP Migration::modifyDatabase怎么用?PHP Migration::modifyDatabase使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Migration
的用法示例。
在下文中一共展示了Migration::modifyDatabase方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: PearDatabase
}
//$continue1 -- Database server can be connected
//$continue2 -- Database exists in the server
//$continue3 -- Tables are exist in the database
if ($continue1 == 1 && $continue2 == 1 && $continue3 == 1) {
$conn = new PearDatabase("mysql", $old_host_name . ":" . $old_mysql_port, $old_dbname, $old_mysql_username, $old_mysql_password);
$conn->connect();
$migrationlog->debug("MICKIE ==> Option = Alter DB details. From the given DB details we will migrate.");
@session_unregister('migration_log');
$_SESSION['migration_log'] = $migration_log;
if ($conn) {
$migrationlog->debug("Database object created. Going to create Migration object");
$obj = new Migration('', $conn);
$obj->setOldDatabaseParams($old_host_name, $old_mysql_port, $old_mysql_username, $old_mysql_password, $old_dbname);
//$obj->migrate($same_databases,'dbsource');
$obj->modifyDatabase($conn);
} else {
echo '<br><font color="red"><b> Cannot make a connection with the current database setup</b></font>';
include "modules/Migration/MigrationStep1.php";
}
} else {
echo '<br><font color="red"><b>ERROR!!!!!!Please check the input values, unable to proceed.</b></font>';
include "modules/Migration/MigrationStep1.php";
}
} else {
//Return to the MigrationStep1
include "modules/Migration/MigrationStep1.php";
exit;
}
?>
<script>