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.
This commit is contained in:
Frantisek Sumsal 2016-07-04 14:07:23 +02:00
parent 6d08f750aa
commit e3b15762d1

View File

@ -85,7 +85,7 @@ class Main extends CI_Controller
'default' => 0, 'default' => 0,
) , ) ,
'data' => array( 'data' => array(
'type' => 'BLOB', 'type' => ($this->db->dbdriver == "postgre") ? 'TEXT' : 'BLOB',
) , ) ,
); );
$this->dbforge->add_field($fields); $this->dbforge->add_field($fields);