Make sure that for every account a user branch exists that has an
initial empty commit with the registration date as commit time. The
commit timestamp of the first commit on a user branch will be used as
registration timestamp when accounts are stored in NoteDb.
When an account is created create the user branch with an initial
empty commit that has the registration date as commit time.
For existing accounts add a schema migration that:
- creates the user branch with an initial empty commit that has the
registration date as commit time if the user branch doesn't exist yet
- rewrites the user branch if it already exists and inserts an initial
empty commit with the registration date as commit time (if such a
commit doesn't exist yet).
Change-Id: I81491a253350a43f094fdfcb32298efde0cb086a
Signed-off-by: Edwin Kempin <ekempin@google.com>