From e3b15762d1bab96ca534a077a42516167c32a515 Mon Sep 17 00:00:00 2001 From: Frantisek Sumsal Date: Mon, 4 Jul 2016 14:07:23 +0200 Subject: [PATCH] Use TEXT instead of BLOB for PostgreSQL PostgreSQL doesn't have BLOB type and the most similar equivalent BYTEA would require several changes in Stikked's code. Thankfully, TEXT is a suitable alternative in this case. --- htdocs/application/controllers/Main.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);