Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4861)

Unified Diff: chrome/test/data/History/history.21.sql

Issue 11363222: Persist download interrupt reason, both target and current paths, and url_chain. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merged to r180302 Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/test/data/History/history.21.sql
diff --git a/chrome/test/data/History/history.21.sql b/chrome/test/data/History/history.21.sql
index 0e5322d9e7d0657c6562ad6a4f45c24ec4167ab4..782147c518a0961d0abe1f5a2f1b0d6928492c67 100644
--- a/chrome/test/data/History/history.21.sql
+++ b/chrome/test/data/History/history.21.sql
@@ -1,12 +1,28 @@
BEGIN TRANSACTION;
+-- Version reset
CREATE TABLE meta(key LONGVARCHAR NOT NULL UNIQUE PRIMARY KEY,value LONGVARCHAR);
INSERT INTO "meta" VALUES('version','21');
INSERT INTO "meta" VALUES('last_compatible_version','16');
+
+-- Create old androi_urls table
CREATE TABLE android_urls(id INTEGER PRIMARY KEY, raw_url LONGVARCHAR, created_time INTEGER NOT NULL, last_visit_time INTEGER NOT NULL, url_id INTEGER NOT NULL,favicon_id INTEGER DEFAULT NULL, bookmark INTEGER DEFAULT 0);
CREATE INDEX android_urls_raw_url_idx ON android_urls(raw_url);
CREATE INDEX android_urls_url_id_idx ON android_urls(url_id);
INSERT INTO "android_urls" VALUES(1,'http://google.com/',1,1,1,1,0);
INSERT INTO "android_urls" VALUES(4,'www.google.com/',1,1,3,1,1);
+
+-- Create downloads table in proper (old) format.
+CREATE TABLE downloads (
+ id INTEGER PRIMARY KEY,
+ full_path LONGVARCHAR NOT NULL,
+ url LONGVARCHAR NOT NULL,
+ start_time INTEGER NOT NULL,
+ received_bytes INTEGER NOT NULL,
+ total_bytes INTEGER NOT NULL,
+ state INTEGER NOT NULL,
+ end_time INTEGER NOT NULL,
+ opened INTEGER NOT NULL);
+
COMMIT;
« no previous file with comments | « chrome/browser/ui/webui/downloads_dom_handler_browsertest.cc ('k') | chrome/test/data/History/history.22.sql » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698