Permalink
Browse files

Added message highlighting (and schema migrations).

  • Loading branch information...
1 parent be9415d commit c68932d686996b5b33c73e1a2ee741f7618fb5cc @codebutler codebutler committed Jun 13, 2012
View
@@ -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);
View
@@ -0,0 +1 @@
+ALTER TABLE events ADD COLUMN highlight BOOLEAN NOT NULL DEFAULT 0;
View
Oops, something went wrong.
View
Oops, something went wrong.
View
Oops, something went wrong.
View
Oops, something went wrong.
View
Oops, something went wrong.
Oops, something went wrong.

0 comments on commit c68932d

Please sign in to comment.