* Start work on FTN/BSO schedule via later.js

* Utilize last scan message ID to scan areas
* Lots of changes to FTN packet creation
* Create packets with target max size
* Create ArcMail bundles when configured to do so
This commit is contained in:
Bryan Ashby 2016-02-28 22:04:03 -07:00
parent ae20dc1f7c
commit 76bbc43600
7 changed files with 595 additions and 27 deletions

View file

@ -204,6 +204,7 @@ function createMessageBaseTables() {
');'
);
// :TODO: Not currently used
dbs.message.run(
'CREATE TABLE IF NOT EXISTS user_message_status (' +
' user_id INTEGER NOT NULL,' +
@ -213,6 +214,15 @@ function createMessageBaseTables() {
' FOREIGN KEY(user_id) REFERENCES user(id)' +
');'
);
dbs.message.run(
`CREATE TABLE IF NOT EXISTS message_area_last_scan (
scan_toss VARCHAR NOT NULL,
area_tag VARCHAR NOT NULL,
message_id INTEGER NOT NULL,
UNIQUE(scan_toss, area_tag)
);`
);
}
function createInitialMessageValues() {