diff options
-rw-r--r-- | user_guide/database/forge.html | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/user_guide/database/forge.html b/user_guide/database/forge.html index 655ab96c1..ecb14570d 100644 --- a/user_guide/database/forge.html +++ b/user_guide/database/forge.html @@ -2,7 +2,7 @@ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
-<title>CodeIgniter User Guide : Database Utility Class</title>
+<title>CodeIgniter User Guide : Database Forge Class</title>
<style type='text/css' media='all'>@import url('../userguide.css');</style>
<link rel='stylesheet' type='text/css' media='all' href='../userguide.css' />
@@ -124,10 +124,10 @@ already be running, since the forge class relies on it.</p> // will translate to "users VARCHAR(100)" when the field is added.</code></p>
<p>Additionally, the following key/values can be used:</p>
<ul>
- <li>unsigned/true : to generate "UNSIGNED" in the field definition</li>
- <li>default/value : to generate a default value in the field definition</li>
- <li>null/true : to generate "NULL" in the field definition. Without this, the field will default to "NOT NULL"</li>
- <li>auto_increment/true : generates an auto_increment flag on the field. Note that the field type must integer</li>
+ <li>unsigned/true : to generate "UNSIGNED" in the field definition.</li>
+ <li>default/value : to generate a default value in the field definition.</li>
+ <li>null/true : to generate "NULL" in the field definition. Without this, the field will default to "NOT NULL".</li>
+ <li>auto_increment/true : generates an auto_increment flag on the field. Note that the field type must be a type that supports this, such as integer.</li>
</ul>
<p><code>$fields = array(<br />
'blog_id' => array(<br />
@@ -204,9 +204,9 @@ $this->dbforge->add_column('table_name', $fields);<br /> 'type' => 'TEXT',<br />
),<br />
);<br />
-$this->dbforge->modify_column('sites', $fields);<br />
+$this->dbforge->modify_column('table_name', $fields);<br />
<br />
- // gives ALTER TABLE sites CHANGE old_name new_name TEXT </code></p>
+ // gives ALTER TABLE table_name CHANGE old_name new_name TEXT </code></p>
<p> </p>
</div>
<!-- END CONTENT -->
|