postgre fix

This commit is contained in:
Claude 2012-05-26 09:54:02 +02:00
parent c37b3046f7
commit b13d199928
2 changed files with 3 additions and 2 deletions

View File

@ -54,6 +54,7 @@ class Main extends CI_Controller
) ,
'session_data' => array(
'type' => 'TEXT',
'null' => TRUE,
) ,
);
$this->dbforge->add_field($fields);
@ -106,6 +107,7 @@ class Main extends CI_Controller
'type' => 'TINYINT',
'constraint' => 1,
'unsigned' => TRUE,
'default' => 0,
) ,
'snipurl' => array(
'type' => 'VARCHAR',

View File

@ -39,7 +39,6 @@ class Pastes extends CI_Model
function createPaste()
{
$data['id'] = NULL;
$data['created'] = time();
//this is SO evil… saving the «raw» data with htmlspecialchars :-( (but I have to leave this, because of backwards-compatibility)
@ -94,7 +93,7 @@ class Pastes extends CI_Model
if ($this->input->post('expire') == 0)
{
$data['expire'] = '0000-00-00 00:00:00';
$data['expire'] = 0;
}
else
{