From: Greg Sabino Mullane Date: Mon, 30 Oct 2006 01:04:00 +0000 (+0000) Subject: Make sure users cannot be deleted unless they have done no editing. X-Git-Tag: 1.31.0-rc.0~55352 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=1b9821bc20054c5081190710f37cf1d1bfb5e696;p=lhc%2Fweb%2Fwiklou.git Make sure users cannot be deleted unless they have done no editing. --- diff --git a/maintenance/postgres/tables.sql b/maintenance/postgres/tables.sql index 3224eaf212..6c22bb6f04 100644 --- a/maintenance/postgres/tables.sql +++ b/maintenance/postgres/tables.sql @@ -87,7 +87,7 @@ CREATE TABLE revision ( rev_page INTEGER NULL REFERENCES page (page_id) ON DELETE CASCADE, rev_text_id INTEGER NULL, -- FK rev_comment TEXT, - rev_user INTEGER NOT NULL REFERENCES mwuser(user_id), + rev_user INTEGER NOT NULL REFERENCES mwuser(user_id) ON DELETE RESTRICT, rev_user_text TEXT NOT NULL, rev_timestamp TIMESTAMPTZ NOT NULL, rev_minor_edit CHAR NOT NULL DEFAULT '0',