diff options
author | Makoto Onuki <omakoto@google.com> | 2017-03-14 11:11:48 -0700 |
---|---|---|
committer | Makoto Onuki <omakoto@google.com> | 2017-03-14 11:15:27 -0700 |
commit | 459639bbe313d2424fa27ece3d7511452ff7eac9 (patch) | |
tree | 029ff7100c2ebefae197dca0975b4e03cc207552 /tools | |
parent | 6d6be558693ec480b281e6614894f22ca5161944 (diff) | |
download | ContactsProvider-459639bbe313d2424fa27ece3d7511452ff7eac9.tar.gz |
Add DB upgrade step to update the views
Bug: 36089513
Test: Manual test
Test: adb shell am instrument -w com.android.providers.contacts.tests
Change-Id: I755cf889c40530d53e3511841db67e4e296d3838
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/contacts-db-schema.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/contacts-db-schema.sh b/tools/contacts-db-schema.sh index 3aa164bc..c5778441 100755 --- a/tools/contacts-db-schema.sh +++ b/tools/contacts-db-schema.sh @@ -23,7 +23,7 @@ db=/data/data/com.android.providers.contacts/databases/contacts2.db # Otherwise sqlite3 would create an empty file owned by root. # Sed inserts a newline after each ( and , -adb shell "(ls $db >/dev/null)&& sqlite3 $db \"select name, sql from sqlite_master where type in('table','index') order by name\"" | +adb shell "(ls $db >/dev/null)&& sqlite3 $db \"select name, sql from sqlite_master where type in('table','index', 'view') order by name\"" | sed -e 's/\([(,]\)/\1\n /g' echo "> sqlite_stat1" adb shell "(ls $db >/dev/null)&& sqlite3 $db \"select * from sqlite_stat1 order by tbl, idx, stat\"" |