1 PRAGMA foreign_keys=OFF;
3 CREATE TABLE meta(key LONGVARCHAR NOT NULL UNIQUE PRIMARY KEY, value LONGVARCHAR);
4 INSERT INTO "meta" VALUES('last_compatible_version','1');
5 INSERT INTO "meta" VALUES('version','11');
7 origin_url VARCHAR NOT NULL,
9 username_element VARCHAR,
10 username_value VARCHAR,
11 password_element VARCHAR,
13 submit_element VARCHAR,
14 signon_realm VARCHAR NOT NULL,
15 ssl_valid INTEGER NOT NULL,
16 preferred INTEGER NOT NULL,
17 date_created INTEGER NOT NULL,
18 blacklisted_by_user INTEGER NOT NULL,
19 scheme INTEGER NOT NULL,
20 password_type INTEGER,
21 possible_usernames BLOB,
27 federation_url VARCHAR,
28 skip_zero_click INTEGER,
29 UNIQUE (origin_url, username_element, username_value, password_element, signon_realm));
30 INSERT INTO "logins" VALUES(
31 'https://accounts.google.com/ServiceLogin', /* origin_url */
32 'https://accounts.google.com/ServiceLoginAuth', /* action_url */
33 'Email', /* username_element */
34 'theerikchen', /* username_value */
35 'Passwd', /* password_element */
36 X'', /* password_value */
37 '', /* submit_element */
38 'https://accounts.google.com/', /* signon_realm */
41 13047429345000000, /* date_created */
42 0, /* blacklisted_by_user */
44 0, /* password_type */
45 X'00000000', /* possible_usernames */
47 X'18000000020000000000000000000000000000000000000000000000', /* form_data */
49 '', /* display_name */
51 '', /* federation_url */
52 0 /* skip_zero_click */
54 INSERT INTO "logins" VALUES(
55 'https://accounts.google.com/ServiceLogin', /* origin_url */
56 'https://accounts.google.com/ServiceLoginAuth', /* action_url */
57 'Email', /* username_element */
58 'theerikchen2', /* username_value */
59 'Passwd', /* password_element */
60 X'', /* password_value */
61 'non-empty', /* submit_element */
62 'https://accounts.google.com/', /* signon_realm */
65 13047423600000000, /* date_created */
66 0, /* blacklisted_by_user */
68 0, /* password_type */
69 X'00000000', /* possible_usernames */
71 X'18000000020000000000000000000000000000000000000000000000', /* form_data */
73 '', /* display_name */
74 'https://www.google.com/icon', /* avatar_url */
75 '', /* federation_url */
76 0 /* skip_zero_click */
78 CREATE INDEX logins_signon ON logins (signon_realm);