From d6c02720232fee39bd4f64085154b10f82df4c44 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Wed, 17 Aug 2016 17:32:01 +0200 Subject: [PATCH] W.I.P collab Editor: - Add last_save timestamp into session table --- filemanager/setup/tables_current.inc.php | 3 ++- filemanager/setup/tables_update.inc.php | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/filemanager/setup/tables_current.inc.php b/filemanager/setup/tables_current.inc.php index 05990fef8d..f32096843e 100644 --- a/filemanager/setup/tables_current.inc.php +++ b/filemanager/setup/tables_current.inc.php @@ -47,7 +47,8 @@ $phpgw_baseline = array( 'collab_genesis_url' => array('type' => 'varchar','precision' => '512', 'comment' => 'Relative to owner documents storage /template.odt'), 'collab_genesis_hash' => array('type' => 'varchar','precision' => '128','nullable' => False, 'comment' => 'To be sure the genesis did not change'), 'collab_file_id' => array('type' => 'varchar','precision' => '512', 'comment' => 'Relative to storage e.g. /template.odt'), - 'account_id' => array('type' => 'int','meta' => 'user','precision' => '4','nullable' => False, 'comment' => 'user who created the session') + 'account_id' => array('type' => 'int','meta' => 'user','precision' => '4','nullable' => False, 'comment' => 'user who created the session'), + 'collab_last_save' => array('type' => 'int','meta' => 'timestamp','precision' => '8','comment' => 'timestamp of the last save') ), 'pk' => array('collab_es_id'), 'fk' => array(), diff --git a/filemanager/setup/tables_update.inc.php b/filemanager/setup/tables_update.inc.php index 48f6ee9d19..9bb2237888 100644 --- a/filemanager/setup/tables_update.inc.php +++ b/filemanager/setup/tables_update.inc.php @@ -52,7 +52,8 @@ function filemanager_upgrade16_1() 'collab_genesis_url' => array('type' => 'varchar','precision' => '512', 'comment' => 'Relative to owner documents storage /template.odt'), 'collab_genesis_hash' => array('type' => 'varchar','precision' => '128','nullable' => False, 'comment' => 'To be sure the genesis did not change'), 'collab_file_id' => array('type' => 'varchar','precision' => '512', 'comment' => 'Relative to storage e.g. /template.odt'), - 'account_id' => array('type' => 'int','meta' => 'user','precision' => '4','nullable' => False, 'comment' => 'user who created the session') + 'account_id' => array('type' => 'int','meta' => 'user','precision' => '4','nullable' => False, 'comment' => 'user who created the session'), + 'collab_last_save' => array('type' => 'int','meta' => 'timestamp','precision' => '8','comment' => 'timestamp of the last save') ), 'pk' => array('collab_es_id'), 'fk' => array(),