From 75eedf56b0c4bac55c3160747a500ee788cbfc18 Mon Sep 17 00:00:00 2001 From: Derek Allard Date: Sun, 13 Apr 2008 12:49:54 +0000 Subject: A field fields were incorrectly commented, and or examples invalid. --- user_guide/database/forge.html | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'user_guide') 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 @@ -CodeIgniter User Guide : Database Utility Class +CodeIgniter User Guide : Database Forge Class @@ -124,10 +124,10 @@ already be running, since the forge class relies on it.

// will translate to "users VARCHAR(100)" when the field is added.

Additionally, the following key/values can be used:

$fields = array(
                        'blog_id' => array(
@@ -204,9 +204,9 @@ $this->dbforge->add_column('table_name', $fields);
                                                         'type' => 'TEXT',
                                                ),
);
-$this->dbforge->modify_column('sites', $fields);
+$this->dbforge->modify_column('table_name', $fields);

- // gives ALTER TABLE sites CHANGE old_name new_name TEXT

+ // gives ALTER TABLE table_name CHANGE old_name new_name TEXT

 

-- cgit v1.2.3-24-g4f1b