mirror of
https://github.com/claudehohl/Stikked.git
synced 2025-04-25 20:41:20 -05:00
postgre fix
This commit is contained in:
parent
c37b3046f7
commit
b13d199928
@ -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',
|
||||
|
@ -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
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user