Commit e73a7b4c authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 462070: Add FK constraints to the status_workflow table - Patch by Nitish…

Bug 462070: Add FK constraints to the status_workflow table - Patch by Nitish Bezzala <nbezzala@yahoo.com> r/a=mkanat
parent 405e90c5
...@@ -805,8 +805,14 @@ use constant ABSTRACT_SCHEMA => { ...@@ -805,8 +805,14 @@ use constant ABSTRACT_SCHEMA => {
status_workflow => { status_workflow => {
FIELDS => [ FIELDS => [
# On bug creation, there is no old value. # On bug creation, there is no old value.
old_status => {TYPE => 'INT2'}, old_status => {TYPE => 'INT2',
new_status => {TYPE => 'INT2', NOTNULL => 1}, REFERENCES => {TABLE => 'bug_status',
COLUMN => 'id',
DELETE => 'CASCADE'}},
new_status => {TYPE => 'INT2', NOTNULL => 1,
REFERENCES => {TABLE => 'bug_status',
COLUMN => 'id',
DELETE => 'CASCADE'}},
require_comment => {TYPE => 'INT1', NOTNULL => 1, DEFAULT => 0}, require_comment => {TYPE => 'INT1', NOTNULL => 1, DEFAULT => 0},
], ],
INDEXES => [ INDEXES => [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment