Adding version to FileState database (incompatible DB formats and protobuf FileItem messages!)
Change-Id: I12b785720b5f033e9f631d0b62eb9e7fdeea0270
diff --git a/src/file-item.proto b/src/file-item.proto
index f63aa9d..4840cec 100644
--- a/src/file-item.proto
+++ b/src/file-item.proto
@@ -1,13 +1,14 @@
message FileItem
{
required string filename = 2;
- required bytes device_name = 3;
- required uint64 seq_no = 4;
+ required uint64 version = 3;
+ required bytes device_name = 4;
+ required uint64 seq_no = 5;
- required bytes file_hash = 5;
- required uint32 mtime = 6;
- required uint32 mode = 7;
- required uint64 seg_num = 8;
+ required bytes file_hash = 6;
+ required uint32 mtime = 7;
+ required uint32 mode = 8;
+ required uint64 seg_num = 9;
- required uint32 is_complete = 9;
+ required uint32 is_complete = 10;
}