X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcore%2FSQL%2FPostgreSQL%2Fsetup_060_backlog.sql;fp=src%2Fcore%2FSQL%2FPostgreSQL%2Fsetup_060_backlog.sql;h=0523fcd6620ef57ff59f804dd94c78dc676cac4d;hb=3cf5c49e7753be48a994917fe898730add4292b1;hp=0000000000000000000000000000000000000000;hpb=e4fc79c07f5301ce2c7888e709ada0945b675c4f;p=quassel.git diff --git a/src/core/SQL/PostgreSQL/setup_060_backlog.sql b/src/core/SQL/PostgreSQL/setup_060_backlog.sql new file mode 100644 index 00000000..0523fcd6 --- /dev/null +++ b/src/core/SQL/PostgreSQL/setup_060_backlog.sql @@ -0,0 +1,9 @@ +CREATE TABLE backlog ( + messageid serial PRIMARY KEY, + time timestamp NOT NULL, + bufferid integer NOT NULL REFERENCES buffer (bufferid) ON DELETE CASCADE, + type integer NOT NULL, + flags integer NOT NULL, + senderid integer NOT NULL REFERENCES sender (senderid) ON DELETE SET NULL, + message TEXT +)