зеркало из https://github.com/mozilla/pjs.git
Bug 285380: Bugzilla::DB::Schema uses ThrowCodeError incorrectly
Patch By Max Kanat-Alexander <mkanat@kerio.com> r=glob, a=justdave
This commit is contained in:
Родитель
c3da78d948
Коммит
401283d3f6
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче