summaryrefslogtreecommitdiffstats
path: root/system/database/DB_forge.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2022-01-05 22:44:53 +0100
committerAndrey Andreev <narf@devilix.net>2022-01-05 22:44:53 +0100
commite837d3589ba5c5da5daa58f69bdc14447c90bc51 (patch)
tree9b2fd6ec4f4d753b2c68f3f21ec626e1bd5eabb0 /system/database/DB_forge.php
parent627f1058c1d72b267ab8ab441219198d6f2c24c6 (diff)
Drop some previously deprecated functionality
Diffstat (limited to 'system/database/DB_forge.php')
-rw-r--r--system/database/DB_forge.php10
1 files changed, 1 insertions, 9 deletions
diff --git a/system/database/DB_forge.php b/system/database/DB_forge.php
index ce9b30d82..f31823536 100644
--- a/system/database/DB_forge.php
+++ b/system/database/DB_forge.php
@@ -556,25 +556,17 @@ abstract class CI_DB_forge {
/**
* Column Add
*
- * @todo Remove deprecated $_after option in 3.1+
* @param string $table Table name
* @param array $field Column definition
- * @param string $_after Column for AFTER clause (deprecated)
* @return bool
*/
- public function add_column($table, $field, $_after = NULL)
+ public function add_column($table, $field)
{
// Work-around for literal column definitions
is_array($field) OR $field = array($field);
foreach (array_keys($field) as $k)
{
- // Backwards-compatibility work-around for MySQL/CUBRID AFTER clause (remove in 3.1+)
- if ($_after !== NULL && is_array($field[$k]) && ! isset($field[$k]['after']))
- {
- $field[$k]['after'] = $_after;
- }
-
$this->add_field(array($k => $field[$k]));
}