diff options
author | Derek Jones <derek.jones@ellislab.com> | 2011-10-05 19:24:45 +0200 |
---|---|---|
committer | Derek Jones <derek.jones@ellislab.com> | 2011-10-05 19:24:45 +0200 |
commit | 044a5221843cc2d88b936f3e658a1df4bc28cfe2 (patch) | |
tree | 9845376e277aa822c41835c8ca8bc94a4cf23756 /user_guide/database/forge.html | |
parent | 47a62548cfdcd5fb6588a2caa92d3b55ac05de6f (diff) | |
parent | d1ecd5cd4ae6ab5d37df9fbda14b93977b9e743c (diff) |
Merge branch 'develop' of github.com:EllisLab/CodeIgniter into develop
Diffstat (limited to 'user_guide/database/forge.html')
-rw-r--r-- | user_guide/database/forge.html | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/user_guide/database/forge.html b/user_guide/database/forge.html index 6b8709892..528d1a24c 100644 --- a/user_guide/database/forge.html +++ b/user_guide/database/forge.html @@ -201,6 +201,10 @@ already be running, since the forge class relies on it.</p> $this->dbforge->add_column('table_name', $fields);<br /> <br /> // gives ALTER TABLE table_name ADD preferences TEXT</code></p> +<p>An optional third parameter can be used to specify which existing column to add the new column after.</p> +<p><code> +$this->dbforge->add_column('table_name', $fields, 'after_field'); +</code></p> <h2>$this->dbforge->drop_column()</h2> <p>Used to remove a column from a table. </p> <p><code>$this->dbforge->drop_column('table_name', 'column_to_drop');</code></p> |