diff options
| author | Scott Ostler <scottbot9000@gmail.com> | 2010-06-11 15:07:46 -0400 |
|---|---|---|
| committer | Scott Ostler <scottbot9000@gmail.com> | 2010-06-11 15:07:46 -0400 |
| commit | 378ba01ba8a4b67fb5d01dd5adc57fb72e3c86a5 (patch) | |
| tree | e0cfed1c91bfc2d5c46f4158d2fe9279fe9dae24 /db | |
| parent | 39ec1ea2114ff86e4f318b2994b457716476c4d0 (diff) | |
load testing code
Diffstat (limited to 'db')
| -rw-r--r-- | db/0-create.psql | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/db/0-create.psql b/db/0-create.psql index 01831e5..4725c08 100644 --- a/db/0-create.psql +++ b/db/0-create.psql @@ -91,7 +91,7 @@ CREATE TABLE feed_images ( room text NOT NULL, message_id integer REFERENCES messages, queued_on timestamp NOT NULL DEFAULT now(), - UNIQUE (room, image_url) + PRIMARY KEY (room, image_url) ); CREATE INDEX feed_images_url_room_idx ON feed_images (image_url, room); @@ -101,7 +101,7 @@ CREATE TABLE invalid_feed_images ( image_url text NOT NULL, reason text NOT NULL, added_on timestamp NOT NULL DEFAULT now(), - UNIQUE (image_url) + PRIMARY KEY (image_url) ); CREATE INDEX invalid_feed_images_idx ON invalid_feed_images (image_url); |
