Added unique constraint to tells table

This commit is contained in:
mrhanky 2017-05-28 12:27:38 +02:00
parent f2f436e90a
commit fe9b8be203
No known key found for this signature in database
GPG Key ID: 67D772C481CB41B8

View File

@ -26,5 +26,6 @@ create table if not exists tells (
from_user text not null,
to_user text not null,
message text not null,
created timestamp not null default current_timestamp
created timestamp not null default current_timestamp,
unique (to_user, message)
);