summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDerek Allard <derek.allard@ellislab.com>2008-01-29 02:09:48 +0100
committerDerek Allard <derek.allard@ellislab.com>2008-01-29 02:09:48 +0100
commit3faee4a32bd5f53f41b302baa452f9165ca48bc5 (patch)
tree0d3e2177c45344d58042e941eb17f4ddcb81101d
parent31438fe2339067f7bf677eb0695c635960c5faa9 (diff)
example touch up, added some semicolons
-rw-r--r--user_guide/database/forge.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/user_guide/database/forge.html b/user_guide/database/forge.html
index cf6be55c4..f234b8a1d 100644
--- a/user_guide/database/forge.html
+++ b/user_guide/database/forge.html
@@ -170,14 +170,14 @@ already be running, since the forge class relies on it.</p>
// gives KEY (blog_name)</code></p>
<h2><a name="create_table" id="create_table2"></a>Creating a table</h2>
<p>After fields and keys have been declared, you can create a new table with</p>
-<p><code>$this-&gt;dbforge-&gt;create_table('table_name')<br />
+<p><code>$this-&gt;dbforge-&gt;create_table('table_name');<br />
// gives CREATE TABLE table_name</code></p>
<p>An optional second parameter set to TRUE adds an &quot;IF NOT EXISTS&quot; clause into the definition</p>
-<p><code>$this-&gt;dbforge-&gt;create_table('table_name')<br />
+<p><code>$this-&gt;dbforge-&gt;create_table('table_name', TRUE);<br />
// gives CREATE TABLE IF NOT EXISTS table_name</code></p>
<h2><a name="drop_table" id="drop_table"></a>Dropping a table</h2>
<p>Executes a DROP TABLE sql</p>
-<p><code>$this-&gt;dbforge-&gt;drop_table('table_name')<br />
+<p><code>$this-&gt;dbforge-&gt;drop_table('table_name');<br />
// gives DROP TABLE IF EXISTS table_name</code></p>
<h1><a name="modifying_tables" id="drop_table2"></a>Modifying Tables</h1>
<h2>$this-&gt;dbforge-&gt;add_column()</h2>