Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added message highlighting (and schema migrations).
- Loading branch information
1 parent
be9415d
commit c68932d
Showing
12 changed files
with
337 additions
and
118 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,36 @@ | ||
CREATE TABLE IF NOT EXISTS connections ( | ||
cid INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, | ||
name TEXT NOT NULL, | ||
created_at DATETIME NOT NULL, | ||
updated_at DATETIME | ||
CREATE TABLE connections ( | ||
cid INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, | ||
name TEXT NOT NULL, | ||
server TEXT NOT NULL, | ||
port INTEGER NOT NULL, | ||
is_ssl BOOLEAN NOT NULL, | ||
nick TEXT NOT NULL, | ||
user_name TEXT NOT NULL, | ||
real_name TEXT NOT NULL, | ||
auto_connect BOOLEAN NOT NULL DEFAULT 1, | ||
created_at DATETIME DEFAULT (strftime('%s','now')), | ||
updated_at DATETIME | ||
); | ||
|
||
CREATE TABLE IF NOT EXISTS buffers ( | ||
bid INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, | ||
cid INTEGER NOT NULL, | ||
name TEXT NOT NULL, | ||
last_seen_eid INTEGER, | ||
created_at DATETIME NOT NULL, | ||
updated_at DATETIME | ||
CREATE TABLE buffers ( | ||
bid INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, | ||
cid INTEGER NOT NULL, | ||
name TEXT NOT NULL, | ||
type TEXT NOT NULL, | ||
archived BOOLEAN NOT NULL DEFAULT 0, | ||
auto_join BOOLEAN, | ||
last_seen_eid INTEGER, | ||
created_at DATETIME DEFAULT (strftime('%s','now')), | ||
updated_at DATETIME | ||
); | ||
|
||
CREATE TABLE IF NOT EXISTS events ( | ||
eid INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, | ||
bid INTEGER NOT NULL, | ||
data TEXT NOT NULL, | ||
created_at DATETIME NOT NULL | ||
CREATE TABLE events ( | ||
eid INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, | ||
bid INTEGER NOT NULL, | ||
data TEXT NOT NULL, | ||
created_at DATETIME DEFAULT (strftime('%s','now')) | ||
); | ||
|
||
CREATE INDEX IF NOT EXISTS connections_name ON connections (name); | ||
CREATE INDEX IF NOT EXISTS events_bid ON events (bid); | ||
CREATE INDEX connections_name ON connections (name); | ||
|
||
CREATE INDEX events_bid ON events (bid); |
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 @@ | ||
ALTER TABLE events ADD COLUMN highlight BOOLEAN NOT NULL DEFAULT 0; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.