summaryrefslogtreecommitdiffstats
path: root/Bugzilla/DB/Schema
diff options
context:
space:
mode:
authorDave Lawrence <dlawrence@mozilla.com>2013-10-11 05:59:04 +0200
committerDave Lawrence <dlawrence@mozilla.com>2013-10-11 05:59:04 +0200
commit085a562c412b8bcdedf978821222f3b6585993e5 (patch)
tree10128437780365c529c03fd860db6d663ecbaa5e /Bugzilla/DB/Schema
parent26bbdeba1c9dcfe557a47f31ed5a408bf39d3153 (diff)
parent4187d8af5055102d2478f3d6021ae2daf19b49b5 (diff)
downloadbugzilla-085a562c412b8bcdedf978821222f3b6585993e5.tar.gz
bugzilla-085a562c412b8bcdedf978821222f3b6585993e5.tar.xz
merged with bugzilla/4.2
Diffstat (limited to 'Bugzilla/DB/Schema')
-rw-r--r--Bugzilla/DB/Schema/Oracle.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/Bugzilla/DB/Schema/Oracle.pm b/Bugzilla/DB/Schema/Oracle.pm
index 87f4e0115..37b406671 100644
--- a/Bugzilla/DB/Schema/Oracle.pm
+++ b/Bugzilla/DB/Schema/Oracle.pm
@@ -219,6 +219,10 @@ sub get_add_column_ddl {
}
else {
@sql = $self->SUPER::get_add_column_ddl(@_);
+ # Create triggers to deal with empty string.
+ if ($definition->{TYPE} =~ /varchar|TEXT/i && $definition->{NOTNULL}) {
+ push(@sql, _get_notnull_trigger_ddl($table, $column));
+ }
}
return @sql;