本文整理匯總了PHP中adoSchema::Destroy方法的典型用法代碼示例。如果您正苦於以下問題:PHP adoSchema::Destroy方法的具體用法?PHP adoSchema::Destroy怎麽用?PHP adoSchema::Destroy使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類adoSchema
的用法示例。
在下文中一共展示了adoSchema::Destroy方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: adoSchema
<head>
<title>Retrospect-GDS - Installation</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="install.css" rel="stylesheet" type="text/css" />
</head>
<body>
<h1>Retrospect-GDS Installer</h1>
<h2>Step 4 - Drop Existing Tables</h2>
<?php
# Drop existing Retrospect-GDS tables
$schema = new adoSchema($db);
$schema->setPrefix($g_db_prefix);
$sql = $schema->ParseSchema('drop.xml');
$result = $schema->ExecuteSchema($sql);
$schema->Destroy();
if ($result != true) {
die('The existing tables could not be dropped. Please remove all Retrospect-GDS tables and try again.');
} else {
echo 'No error were encountered.';
}
?>
<h2>Step 5 - Creating Tables</h2>
<?php
# create new tables and indexes
$schema = new adoSchema($db);
$schema->setPrefix($g_db_prefix);
$sql = $schema->ParseSchema('create.xml');
$result = $schema->ExecuteSchema($sql);