Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(903)

Unified Diff: sync/syncable/syncable_columns.h

Issue 10989063: Changed DB to store node positions as Ordinals. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fixed memory leak error in unittest Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sync/syncable/mutable_entry.cc ('k') | sync/syncable/syncable_enum_conversions.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/syncable/syncable_columns.h
diff --git a/sync/syncable/syncable_columns.h b/sync/syncable/syncable_columns.h
index a6152c42de7d3f337bac8fa3819a01ee13784a2d..f5d48e0cbcd0b700db1339f9a3b8d516a9bed0e0 100644
--- a/sync/syncable/syncable_columns.h
+++ b/sync/syncable/syncable_columns.h
@@ -16,14 +16,13 @@ struct ColumnSpec {
const char* spec;
};
-// Must be in exact same order as fields in syncable.
+// Must be in exact same order as fields in entry_kernel.h.
static const ColumnSpec g_metas_columns[] = {
//////////////////////////////////////
// int64s
{"metahandle", "bigint primary key ON CONFLICT FAIL"},
{"base_version", "bigint default " CHANGES_VERSION_STRING},
{"server_version", "bigint default 0"},
- {"server_position_in_parent", "bigint default 0"},
// This is the item ID that we store for the embedding application.
{"local_external_id", "bigint default 0"},
// These timestamps are kept in the same format as that of the
@@ -54,10 +53,13 @@ static const ColumnSpec g_metas_columns[] = {
{"unique_server_tag", "varchar"},
{"unique_client_tag", "varchar"},
//////////////////////////////////////
- // Blobs.
+ // Blobs (serialized protos).
{"specifics", "blob"},
{"server_specifics", "blob"},
- {"base_server_specifics", "blob"}
+ {"base_server_specifics", "blob"},
+ //////////////////////////////////////
+ // Blobs (ordinals).
+ {"server_ordinal_in_parent", "blob"},
};
// At least enforce that there are equal number of column names and fields.
« no previous file with comments | « sync/syncable/mutable_entry.cc ('k') | sync/syncable/syncable_enum_conversions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698