commit | 2c65b1d886772e64b039a0dbbb65ef11268b4f88 | [log] [tgz] |
---|---|---|
author | Mohamed Amir Yosef <mamir@chromium.org> | Tue Jan 08 14:49:29 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Tue Jan 08 14:49:29 2019 |
tree | a1ca8fe00e2ca9f37e624866ec77a5546d7c5a04 | |
parent | e67e554ecdb3bffd16141379863b6a811da42f2b [diff] |
[Sync:USS] Add primary key to LoginDatabase LoginDatabase doesn't have a primary key, however migration to USS requires the concept of storage key which is ideally the primary key of the table. LoginDatabase uses SQLTableBuilder to migrate from different database versions. SQLTableBuilder migration doesn't support adding primary keys at arbitrary version, rather only in the first version. This CL adds the support to introduce primary keys and unique keys at any version and adjusts the migration code accordingly. In addition, it uses the updated SQLTableBuilder to add a primary key to the LoginDatabase. Bug: 902349 Change-Id: I08f0d6f9884c5ef2b99650a76716197ca4f18b9c Reviewed-on: https://chromium-review.googlesource.com/c/1361861 Commit-Queue: Mohamed Amir Yosef <mamir@chromium.org> Reviewed-by: Mikel Astiz <mastiz@chromium.org> Reviewed-by: Vasilii Sukhanov <vasilii@chromium.org> Cr-Commit-Position: refs/heads/master@{#620713}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .