DO NOT MERGE - Avoid re-use of orphaned data

Data is being added to Attendees and Reminders that is associated
with delete Events.  When the Event ID is re-used, the orphaned
data attaches to the new event.  To avoid this, change the Event
ID column to "autoincrement", ensuring that IDs are never re-used.

At database upgrade time, delete any orphaned rows.

Bug 5063315

(cherry-pick from hc-mr2)

Change-Id: I06f42205bd5e6720f877e797fa830e720423a424
1 file changed