本文整理汇总了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);