Reland "[Offline Pages] Add attribution, snippet and favicon to offline pages database"
The original CL added a column to the "page_thumbnails" table with NOT NULL but with no default value. The procedure for upgrading to the new schema version involved copying all rows of that table but did not give a value for the new column, causing a crash during schema upgrades. This CL adds a default value for "favicon", eliminates copying all rows as it was unnecessary anyway, and improves testing by ensuring a row exists in page_thumbnails before the schema upgrade. Bug: 841516 Change-Id: I3c9988bb7e23dec1fcc8d1f25db0c9efe8d88517 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1552117Reviewed-by:Carlos Knippschild <carlosk@chromium.org> Reviewed-by:
Dan H <harringtond@google.com> Commit-Queue: Ian Wells <iwells@chromium.org> Cr-Commit-Position: refs/heads/master@{#648750}
Showing
Please register or sign in to comment