r17296 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r17295‎ | r17296 | r17297 >
Date:01:04, 30 October 2006
Author:greg
Status:old
Tags:
Comment:
Make sure users cannot be deleted unless they have done no editing.
Modified paths:
  • /trunk/phase3/maintenance/postgres/tables.sql (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/postgres/tables.sql
@@ -87,7 +87,7 @@
8888 rev_page INTEGER NULL REFERENCES page (page_id) ON DELETE CASCADE,
8989 rev_text_id INTEGER NULL, -- FK
9090 rev_comment TEXT,
91 - rev_user INTEGER NOT NULL REFERENCES mwuser(user_id),
 91+ rev_user INTEGER NOT NULL REFERENCES mwuser(user_id) ON DELETE RESTRICT,
9292 rev_user_text TEXT NOT NULL,
9393 rev_timestamp TIMESTAMPTZ NOT NULL,
9494 rev_minor_edit CHAR NOT NULL DEFAULT '0',