summaryrefslogtreecommitdiffstats
path: root/user_guide_src/source
diff options
context:
space:
mode:
authorLouisMilotte <louis.milotte@yahoo.com>2015-04-04 12:22:12 +0200
committerLouisMilotte <louis.milotte@yahoo.com>2015-04-04 12:22:12 +0200
commit1db6da309a66ff202d43a4bbb5fdbd66d70afe13 (patch)
treeeca75bc6fbde0a7fb7cb78743c08edf4e9ca4171 /user_guide_src/source
parent016c43354ef90cc0802456d814fb5a9f88451b6f (diff)
Edit dbforge drop_table line 230
At current the documentation does not distinguish between DROP TABLE IF EXISTS table_name and DROP TABLE table_name. As seen by the DB_forge.php class in system/database; the function accepts a Boolean as the second parameter as to whether or not to apply the IF EXISTS mysql condition.
Diffstat (limited to 'user_guide_src/source')
-rw-r--r--user_guide_src/source/database/forge.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/user_guide_src/source/database/forge.rst b/user_guide_src/source/database/forge.rst
index 89fac023e..a4edada5c 100644
--- a/user_guide_src/source/database/forge.rst
+++ b/user_guide_src/source/database/forge.rst
@@ -227,7 +227,7 @@ Execute a DROP TABLE statement and optionally add an IF EXISTS clause.
$this->dbforge->drop_table('table_name');
// Produces: DROP TABLE IF EXISTS table_name
- $this->dbforge->drop_table('table_name');
+ $this->dbforge->drop_table('table_name',TRUE);
Renaming a table
@@ -405,4 +405,4 @@ Class Reference
:returns: TRUE on success, FALSE on failure
:rtype: bool
- Renames a table. Usage: See `Renaming a table`_. \ No newline at end of file
+ Renames a table. Usage: See `Renaming a table`_.