diff --git a/src/Pluf/DB/Field/Compressed.php b/src/Pluf/DB/Field/Compressed.php index 8c5d166..6916c0f 100644 --- a/src/Pluf/DB/Field/Compressed.php +++ b/src/Pluf/DB/Field/Compressed.php @@ -30,7 +30,7 @@ */ class Pluf_DB_Field_Compressed extends Pluf_DB_Field { - public $type = 'text'; + public $type = 'blob'; function formField($def, $form_field='Pluf_Form_Field_Varchar') { diff --git a/src/Pluf/DB/Schema/PostgreSQL.php b/src/Pluf/DB/Schema/PostgreSQL.php index 9ab02e0..8c64676 100644 --- a/src/Pluf/DB/Schema/PostgreSQL.php +++ b/src/Pluf/DB/Schema/PostgreSQL.php @@ -49,6 +49,7 @@ class Pluf_DB_Schema_PostgreSQL 'email' => 'character varying', 'password' => 'character varying', 'float' => 'real', + 'blob' => 'bytea', ); public $defaults = array( @@ -67,6 +68,7 @@ class Pluf_DB_Schema_PostgreSQL 'email' => "''", 'password' => "''", 'float' => 0.0, + 'bytea' => '', ); private $con = null;