commit | c8649eea0ee18eb1811fc131ebf21c393c507724 | [log] [tgz] |
---|---|---|
author | Jeff Sharkey <jsharkey@android.com> | Thu Jan 03 15:12:53 2019 -0700 |
committer | Jeff Sharkey <jsharkey@android.com> | Thu Jan 03 15:13:28 2019 -0700 |
tree | c0c7a15662ca1b655fa9b139d481002f34e38a7b | |
parent | 85c27294940c6ca068fc1269a2647f7c95d2a7f6 [diff] |
More robust database upgrade logic. Idiomatic database upgrade logic is progressive, so we only need to make a single call in passing to update the schema. Restructure the existing upgrade steps to follow this design, and add tests that confirm upgrade and downgrade behavior for the last several major letter releases. Bug: 122248315 Test: atest MediaProviderTests Change-Id: Ia48c4a92741aef31c4308fe399d4cdb44fbc8a53