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

Side by Side Diff: trunk/src/components/test/data/web_database/version_45_invalid.sql

Issue 18177003: Revert 209071 "components/webdata: Break the dependency on chrom..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 PRAGMA foreign_keys=OFF;
2 BEGIN TRANSACTION;
3 CREATE TABLE meta(key LONGVARCHAR NOT NULL UNIQUE PRIMARY KEY, value LONGVARCHAR );
4 INSERT INTO "meta" VALUES('Default Search Provider ID','2');
5 INSERT INTO "meta" VALUES('version','45');
6 INSERT INTO "meta" VALUES('last_compatible_version','45');
7 INSERT INTO "meta" VALUES('Default Search Provider ID Backup','2');
8 INSERT INTO "meta" VALUES('Default Search Provider ID Backup Signature','');
9 INSERT INTO "meta" VALUES('Builtin Keyword Version','39');
10 CREATE TABLE autofill (name VARCHAR, value VARCHAR, value_lower VARCHAR, pair_id INTEGER PRIMARY KEY, count INTEGER DEFAULT 1);
11 CREATE TABLE credit_cards ( guid VARCHAR PRIMARY KEY, name_on_card VARCHAR, expi ration_month INTEGER, expiration_year INTEGER, card_number_encrypted BLOB, date_ modified INTEGER NOT NULL DEFAULT 0);
12 CREATE TABLE autofill_dates ( pair_id INTEGER DEFAULT 0, date_created INTEGER DE FAULT 0);
13 CREATE TABLE autofill_profiles ( guid VARCHAR PRIMARY KEY, company_name VARCHAR, address_line_1 VARCHAR, address_line_2 VARCHAR, city VARCHAR, state VARCHAR, zi pcode VARCHAR, country VARCHAR, country_code VARCHAR, date_modified INTEGER NOT NULL DEFAULT 0);
14 CREATE TABLE autofill_profile_names ( guid VARCHAR, first_name VARCHAR, middle_n ame VARCHAR, last_name VARCHAR);
15 CREATE TABLE autofill_profile_emails ( guid VARCHAR, email VARCHAR);
16 CREATE TABLE autofill_profile_phones ( guid VARCHAR, type INTEGER DEFAULT 0, num ber VARCHAR);
17 CREATE TABLE autofill_profiles_trash ( guid VARCHAR);
18 CREATE TABLE web_app_icons (url LONGVARCHAR,width int,height int,image BLOB, UNI QUE (url, width, height));
19 CREATE TABLE web_apps (url LONGVARCHAR UNIQUE,has_all_images INTEGER NOT NULL);
20 CREATE TABLE token_service (service VARCHAR PRIMARY KEY NOT NULL,encrypted_token BLOB);
21 CREATE TABLE web_intents (INTEGER blabbity);
22 CREATE TABLE web_intents_defaults (VARCHAR hammy);
23 CREATE TABLE "keywords" (id INTEGER PRIMARY KEY,short_name VARCHAR NOT NULL,keyw ord VARCHAR NOT NULL,favicon_url VARCHAR NOT NULL,url VARCHAR NOT NULL,safe_for_ autoreplace INTEGER,originating_url VARCHAR,date_created INTEGER DEFAULT 0,usage _count INTEGER DEFAULT 0,input_encodings VARCHAR,show_in_default_list INTEGER,su ggest_url VARCHAR,prepopulate_id INTEGER DEFAULT 0,created_by_policy INTEGER DEF AULT 0,instant_url VARCHAR,last_modified INTEGER DEFAULT 0,sync_guid VARCHAR);
24 CREATE TABLE keywords_backup(
25 id INT,
26 short_name TEXT,
27 keyword TEXT,
28 favicon_url TEXT,
29 url TEXT,
30 safe_for_autoreplace INT,
31 originating_url TEXT,
32 date_created INT,
33 usage_count INT,
34 input_encodings TEXT,
35 show_in_default_list INT,
36 suggest_url TEXT,
37 prepopulate_id INT,
38 created_by_policy INT,
39 instant_url TEXT,
40 last_modified INT,
41 sync_guid TEXT
42 );
43 CREATE INDEX autofill_name ON autofill (name);
44 CREATE INDEX autofill_name_value_lower ON autofill (name, value_lower);
45 CREATE INDEX autofill_dates_pair_id ON autofill_dates (pair_id);
46 CREATE INDEX web_apps_url_index ON web_apps (url);
47 -- following statements are required for testing migration to version 46
48 INSERT INTO web_intents VALUES (11);
49 INSERT INTO web_intents_defaults VALUES ('fuzz');
50 COMMIT;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698