summaryrefslogtreecommitdiffstats
path: root/Bugzilla/DB
diff options
context:
space:
mode:
authormiketosh <michael.j.tosh@lmco.com>2011-10-23 14:20:15 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2011-10-23 14:20:15 +0200
commitd47f6057e0257b3282ff25a144b9ef36ec741012 (patch)
treef390798c18074a9eda97f5801abdf81712cafb9a /Bugzilla/DB
parent0122a4e056b7f9c4f22d7c67ba9801f0c8c49d71 (diff)
downloadbugzilla-d47f6057e0257b3282ff25a144b9ef36ec741012.tar.gz
bugzilla-d47f6057e0257b3282ff25a144b9ef36ec741012.tar.xz
Bug 690173: Cannot delete user accounts due to FK on audit_log
r/a=mkanat
Diffstat (limited to 'Bugzilla/DB')
-rw-r--r--Bugzilla/DB/Schema.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/Bugzilla/DB/Schema.pm b/Bugzilla/DB/Schema.pm
index 33527c367..6d9a33ef7 100644
--- a/Bugzilla/DB/Schema.pm
+++ b/Bugzilla/DB/Schema.pm
@@ -516,7 +516,8 @@ use constant ABSTRACT_SCHEMA => {
FIELDS => [
user_id => {TYPE => 'INT3',
REFERENCES => {TABLE => 'profiles',
- COLUMN => 'userid'}},
+ COLUMN => 'userid',
+ DELETE => 'SET NULL'}},
class => {TYPE => 'varchar(255)', NOTNULL => 1},
object_id => {TYPE => 'INT4', NOTNULL => 1},
field => {TYPE => 'varchar(64)', NOTNULL => 1},