summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'shared/classes/session.php')
-rw-r--r--shared/classes/session.php10
1 files changed, 7 insertions, 3 deletions
diff --git a/shared/classes/session.php b/shared/classes/session.php
index 57804ed..19575fe 100644
--- a/shared/classes/session.php
+++ b/shared/classes/session.php
@@ -4,26 +4,30 @@ class sql_session extends sql_row_obj {
'id' => array (
'type' => 'VARCHAR',
'length' => 30,
- 'not_null' => true
+ 'not_null' => true,
+ 'default' => ''
),
'user' => array (
'type' => 'INT',
'length' => 10,
'unsigned' => true,
'not_null' => true,
+ 'default' => 0,
'refers to' => 'users.id'
),
'atime' => array (
'type' => 'INT',
'length' => 10,
'unsigned' => true,
- 'not_null' => true
+ 'not_null' => true,
+ 'default' => 0
),
'expire' => array (
'type' => 'INT',
'length' => 10,
'unsigned' => true,
- 'not_null' => true
+ 'not_null' => true,
+ 'default' => 0
)
);