mirror of
https://github.com/claudehohl/Stikked.git
synced 2025-04-26 04:51:08 -05:00
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:
parent
6d08f750aa
commit
e3b15762d1
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user