Add another voip_subscribers relation.

This one points from provisioning.voip_subscribers to billing.voip_subscribers.
agranig/2.004-ramoptimized
Andreas Granig 12 years ago
parent cab6831e40
commit 6f9a565758

@ -7,7 +7,7 @@ use Regexp::IPv6 qw($IPv6_re);
use MooseX::ClassAttribute qw(class_has); use MooseX::ClassAttribute qw(class_has);
extends 'DBIx::Class::Schema'; extends 'DBIx::Class::Schema';
our $VERSION = '1.004'; our $VERSION = '1.005';
__PACKAGE__->load_namespaces; __PACKAGE__->load_namespaces;

@ -416,5 +416,14 @@ Related object: L<NGCP::Schema::Result::voip_usr_preferences>
# You can replace this text with custom code or comments, and it will be preserved on regeneration # You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->has_one(
"voip_subscriber",
'NGCP::Schema::Result::voip_subscribers',
{ 'foreign.uuid' => 'self.uuid' },
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->meta->make_immutable; __PACKAGE__->meta->make_immutable;
1; 1;

Loading…
Cancel
Save