1 -- unit_tests --gtest_filter=ThumbnailDatabaseTest.WildSchema
3 -- Based on version 5 schema found in the wild by error diagnostics.
4 -- The schema failed to open because the v3 [favicons] table is
7 -- Init() should clean up with RazeAndClose().
10 -- [meta] is expected.
11 CREATE TABLE meta(key LONGVARCHAR NOT NULL UNIQUE PRIMARY KEY,value LONGVARCHAR);
12 INSERT INTO "meta" VALUES('version','5');
13 INSERT INTO "meta" VALUES('last_compatible_version','5');
15 -- v4 [favicons] (missing [sizes]), but v5 database.
16 CREATE TABLE "favicons"(id INTEGER PRIMARY KEY,url LONGVARCHAR NOT NULL,last_updated INTEGER DEFAULT 0,image_data BLOB,icon_type INTEGER DEFAULT 1);
17 CREATE INDEX favicons_url ON favicons(url);
19 -- [icon_mapping] consistent with v5.
20 CREATE TABLE icon_mapping(id INTEGER PRIMARY KEY,page_url LONGVARCHAR NOT NULL,icon_id INTEGER);
21 CREATE INDEX icon_mapping_icon_id_idx ON icon_mapping(icon_id);
22 CREATE INDEX icon_mapping_page_url_idx ON icon_mapping(page_url);