diff options
author | miketosh <michael.j.tosh@lmco.com> | 2011-10-23 14:18:04 +0200 |
---|---|---|
committer | Frédéric Buclin <LpSolit@gmail.com> | 2011-10-23 14:18:04 +0200 |
commit | 5173b6cbadea03c8525218f09794b3f74ab12d96 (patch) | |
tree | 05aaf3f5230a04647ca371480dae85f974d035de /Bugzilla/DB | |
parent | ce3970fd0a2890b88485c2723e7af1633544c741 (diff) | |
download | bugs-5173b6cbadea03c8525218f09794b3f74ab12d96.tar bugs-5173b6cbadea03c8525218f09794b3f74ab12d96.tar.gz bugs-5173b6cbadea03c8525218f09794b3f74ab12d96.tar.bz2 bugs-5173b6cbadea03c8525218f09794b3f74ab12d96.tar.xz bugs-5173b6cbadea03c8525218f09794b3f74ab12d96.zip |
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.pm | 3 |
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}, |