~liberachat/beryllia

17fb6b8a8b2d7ac18729ffbd4f5f05945eadc852 — jesopo a month ago 2b7ebbe
switch cliexit(cliconn_id) to ON DELETE SET NULL
1 files changed, 1 insertions(+), 1 deletions(-)

M make-database.sql
M make-database.sql => make-database.sql +1 -1
@@ 113,7 113,7 @@ CREATE INDEX cliconn_ip          ON cliconn(ip);

CREATE TABLE cliexit (
    id           SERIAL       PRIMARY KEY,
    cliconn_id   INTEGER      REFERENCES cliconn (id),
    cliconn_id   INTEGER      REFERENCES cliconn (id)  ON DELETE SET NULL,
    nickname     VARCHAR(16)  NOT NULL,
    search_nick  VARCHAR(16)  NOT NULL,
    username     VARCHAR(10)  NOT NULL,