diff --git a/htdocs/application/controllers/Main.php b/htdocs/application/controllers/Main.php index 50b8a7f..fab7fb5 100644 --- a/htdocs/application/controllers/Main.php +++ b/htdocs/application/controllers/Main.php @@ -85,7 +85,7 @@ class Main extends CI_Controller 'default' => 0, ) , 'data' => array( - 'type' => 'BLOB', + 'type' => ($this->db->dbdriver == "postgre") ? 'TEXT' : 'BLOB', ) , ); $this->dbforge->add_field($fields);