add file_seg_num to action-item and ActionLog table;
modification to sqilte statements not done;
diff --git a/src/action-item.proto b/src/action-item.proto
index 3218ef8..c7eca9c 100644
--- a/src/action-item.proto
+++ b/src/action-item.proto
@@ -5,18 +5,19 @@
     UPDATE = 0;
     DELETE = 1;
   }
-  required ActionType action = 3;
+  required ActionType action = 0;
 
-  required string filename = 4;
-  required uint64 version = 5;
-  required uint32 timestamp = 6;
+  required string filename = 1;
+  required uint64 version = 2;
+  required uint32 timestamp = 3;
+  optional uint64 seg_num = 4;
+  optional bytes  file_hash = 5;
 
-  optional bytes  file_hash = 7;
-  // optional uint32 atime = 8;
-  optional uint32 mtime = 9;
-  // optional uint32 ctime = 10;
-  optional uint32 mode  = 11;
+  optional uint32 mtime = 6;
+  optional uint32 mode  = 7;
+  optional uint32 atime = 8;
+  optional uint32 ctime = 9;
 
-  optional bytes  parent_device_name = 12;
-  optional uint64 parent_seq_no = 13;
+  // optional bytes  parent_device_name = 12;
+  // optional uint64 parent_seq_no = 13;
 }
diff --git a/src/db-helper.cc b/src/db-helper.cc
index 0e08612..4313dfd 100644
--- a/src/db-helper.cc
+++ b/src/db-helper.cc
@@ -103,6 +103,7 @@
     file_mtime  TIMESTAMP,                                              \n\
     file_ctime  TIMESTAMP,                                              \n\
     file_chmod  INTEGER,                                                \n\
+    file_seg_num INTEGER, /* NULL if action is \"delete\" */            \n\
                                                                         \n\
     parent_device_id INTEGER,                                           \n\
     parent_seq_no    INTEGER,                                           \n\