summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authordumpfmprod <dumpfmprod@ubuntu.(none)>2010-05-17 12:01:04 -0400
committerdumpfmprod <dumpfmprod@ubuntu.(none)>2010-05-17 12:01:04 -0400
commita56999f4bfc6d12c34f9fb7201b6f86e537a5207 (patch)
treef7d4620442b928261127012c29260cd40f8a7b40 /db
parent2439fbecf91c813c2f560ee2e45f25dfa7c01633 (diff)
parentf3d4f45db32c105e5c700668eb420f4d3709cbf3 (diff)
Merge branch 'master' of /pichat/repo
Diffstat (limited to 'db')
-rw-r--r--db/0-create.psql13
1 files changed, 13 insertions, 0 deletions
diff --git a/db/0-create.psql b/db/0-create.psql
index 979363d..a90d23e 100644
--- a/db/0-create.psql
+++ b/db/0-create.psql
@@ -10,6 +10,7 @@ CREATE TABLE users (
avatar text NOT NULL DEFAULT '',
contact text NOT NULL DEFAULT '',
bio text NOT NULL DEFAULT '',
+ is_bot NOT NULL DEFAULT false,
profile_bg text
);
CREATE INDEX users_nick_lowercase_idx ON users (lower(nick));
@@ -74,3 +75,15 @@ INSERT INTO rooms (key, name, description, admin_only)
INSERT INTO rooms (key, name, description, admin_only)
VALUES ('VIP', 'The VIP Room', 'Command Post', true);
+CREATE TABLE feed_images (
+ external_url text NOT NULL,
+ local_url text NOT NULL,
+ feed_url text NOT NULL,
+ added_on timestamp NOT NULL DEFAULT now(),
+ room_id integer REFERENCES rooms
+);
+
+CREATE INDEX feed_images_external_url_idx ON feed_images (external_url);
+CREATE INDEX feed_images_image_posted_idx ON feed_images (external_url, room_id);
+
+