From 3faee4a32bd5f53f41b302baa452f9165ca48bc5 Mon Sep 17 00:00:00 2001 From: Derek Allard Date: Tue, 29 Jan 2008 01:09:48 +0000 Subject: example touch up, added some semicolons --- user_guide/database/forge.html | 6 +++--- 1 file 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.

// gives KEY (blog_name)

Creating a table

After fields and keys have been declared, you can create a new table with

-

$this->dbforge->create_table('table_name')
+

$this->dbforge->create_table('table_name');
// gives CREATE TABLE table_name

An optional second parameter set to TRUE adds an "IF NOT EXISTS" clause into the definition

-

$this->dbforge->create_table('table_name')
+

$this->dbforge->create_table('table_name', TRUE);
// gives CREATE TABLE IF NOT EXISTS table_name

Dropping a table

Executes a DROP TABLE sql

-

$this->dbforge->drop_table('table_name')
+

$this->dbforge->drop_table('table_name');
// gives DROP TABLE IF EXISTS table_name

Modifying Tables

$this->dbforge->add_column()

-- cgit v1.2.3-24-g4f1b