From: Moritz Bunkus Date: Thu, 11 Jul 2013 15:42:49 +0000 (+0200) Subject: SL::DBUpgrade2::Base::drop_constraints: Schema-Namen nicht hardcoden X-Git-Tag: release-3.1.0beta1~175^2~9 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=1f0a5bd840b6725dccb2de7ace24127eb7d3e91b;p=kivitendo-erp.git SL::DBUpgrade2::Base::drop_constraints: Schema-Namen nicht hardcoden --- diff --git a/SL/DBUpgrade2/Base.pm b/SL/DBUpgrade2/Base.pm index 6367911b9..100652e15 100644 --- a/SL/DBUpgrade2/Base.pm +++ b/SL/DBUpgrade2/Base.pm @@ -132,7 +132,7 @@ sub drop_constraints { AND (table_name = ?) SQL - $self->db_query(qq|ALTER TABLE auth."$params{table}" DROP CONSTRAINT "${_}"|) for map { $_->[0] } @{ $constraints }; + $self->db_query(qq|ALTER TABLE $params{schema}."$params{table}" DROP CONSTRAINT "${_}"|) for map { $_->[0] } @{ $constraints }; } 1;