-
Notifications
You must be signed in to change notification settings - Fork 574
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
427965c
commit caf7bae
Showing
27 changed files
with
1,000 additions
and
616 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
ALTER TABLE inventory ADD first20bytesofencryptedmessage blob DEFAULT ''; | ||
|
||
UPDATE settings SET value = 2 WHERE key = 'version'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,5 @@ | |
-- | ||
|
||
ALTER TABLE inventory ADD tag blob DEFAULT ''; | ||
|
||
UPDATE settings SET value = 4 WHERE key = 'version'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,5 @@ | |
-- | ||
|
||
ALTER TABLE inbox ADD sighash blob DEFAULT ''; | ||
|
||
UPDATE settings SET value = 9 WHERE key = 'version'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
CREATE TABLE `inbox` ( | ||
`msgid` blob, | ||
`toaddress` text, | ||
`fromaddress` text, | ||
`subject` text, | ||
`received` text, | ||
`message` text, | ||
`folder` text, | ||
`encodingtype` int, | ||
`read` bool, | ||
UNIQUE(msgid) ON CONFLICT REPLACE | ||
); | ||
|
||
CREATE TABLE `sent` ( | ||
`msgid` blob, | ||
`toaddress` text, | ||
`toripe` blob, | ||
`fromaddress` text, | ||
`subject` text, | ||
`message` text, | ||
`ackdata` blob, | ||
`lastactiontime` integer, | ||
`status` text, | ||
`pubkeyretrynumber` integer, | ||
`msgretrynumber` integer, | ||
`folder` text, | ||
`encodingtype` int | ||
); | ||
|
||
CREATE TABLE `subscriptions` ( | ||
`label` text, | ||
`address` text, | ||
`enabled` bool | ||
); | ||
|
||
CREATE TABLE `addressbook` ( | ||
`label` text, | ||
`address` text | ||
); | ||
|
||
CREATE TABLE `blacklist` ( | ||
`label` text, | ||
`address` text, | ||
`enabled` bool | ||
); | ||
|
||
CREATE TABLE `whitelist` ( | ||
`label` text, | ||
`address` text, | ||
`enabled` bool | ||
); | ||
|
||
CREATE TABLE `pubkeys` ( | ||
`hash` blob, | ||
`transmitdata` blob, | ||
`time` int, | ||
`usedpersonally` text, | ||
UNIQUE(hash) ON CONFLICT REPLACE | ||
); | ||
|
||
CREATE TABLE `inventory` ( | ||
`hash` blob, | ||
`objecttype` text, | ||
`streamnumber` int, | ||
`payload` blob, | ||
`receivedtime` integer, | ||
UNIQUE(hash) ON CONFLICT REPLACE | ||
); | ||
|
||
CREATE TABLE `knownnodes` ( | ||
`timelastseen` int, | ||
`stream` int, | ||
`services` blob, | ||
`host` blob, | ||
`port` blob, | ||
UNIQUE(host, stream, port) ON CONFLICT REPLACE | ||
); | ||
|
||
CREATE TABLE `settings` ( | ||
`key` blob, | ||
`value` blob, | ||
UNIQUE(key) ON CONFLICT REPLACE | ||
); | ||
|
||
INSERT INTO subscriptions VALUES ('Bitmessage new releases/announcements', 'BM-GtovgYdgs7qXPkoYaRgrLFuFKz1SFpsw', 1); | ||
|
||
INSERT INTO settings VALUES('version', 1); | ||
|
||
INSERT INTO settings VALUES('lastvacuumtime', CAST(strftime('%s', 'now') AS STR) ); | ||
|
||
INSERT INTO inventory VALUES( '', 'pubkey', 1, '', 1); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
INSERT INTO addressbook VALUES ('', ''); | ||
|
||
INSERT INTO addressbook VALUES ('', ''); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
INSERT INTO inventory VALUES( '', 1, 1, '', 1, ''); | ||
|
||
INSERT INTO pubkeys VALUES( '', 1, '', 1, ''); | ||
|
||
INSERT INTO sent VALUES( '', '', '', '', '', '', '', 1, 'doingmsgpow', 1, 1, '', 1); | ||
|
||
INSERT INTO sent VALUES( '', '', '', '', '', '', '', 1, 'badkey', 1, 1, '', 1); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
INSERT INTO pubkeys VALUES( x'0001010101010101010101010101010101010101', 3, '', 1, ''); |
Oops, something went wrong.