Commit bc4e5744 authored by mkanat%kerio.com's avatar mkanat%kerio.com

Bug 285380: Bugzilla::DB::Schema uses ThrowCodeError incorrectly

Patch By Max Kanat-Alexander <mkanat@kerio.com> r=glob, a=justdave
parent b8793ea2
......@@ -1059,7 +1059,7 @@ sub get_type_ddl {
my $finfo = (@_ == 1 && ref($_[0]) eq 'HASH') ? $_[0] : { @_ };
my $type = $finfo->{TYPE};
ThrowCodeError("A data type must be specified.") unless ($type);
die "A valid TYPE was not specified for this column." unless ($type);
my $default = $finfo->{DEFAULT};
my $fkref = $self->{enable_references} ? $finfo->{REFERENCES} : undef;
my $type_ddl = $self->{db_specific}{$type} || $type;
......
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