MT#63479 Remove prosody support

Change-Id: I3bd03782b338d6209758eb3a8ec3513a77ab3461
mr14.1.1
Guillem Jover 10 months ago
parent 95b7c2c106
commit 89ec2c1c02

@ -368,31 +368,6 @@ __PACKAGE__->might_have(
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->has_many(
"sipwise_mam_user",
'NGCP::Schema::Result::sipwise_mam',
sub {
my $args = shift;
return {
"$args->{foreign_alias}.username" => { '=' => \"concat($args->{self_alias}.username,\"@\",domain.domain)" } ,
};
},
{ join_type => 'inner' },
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->has_many(
"sipwise_mam_with",
'NGCP::Schema::Result::sipwise_mam',
sub {
my $args = shift;
return {
"$args->{foreign_alias}.with" => { '=' => \"concat($args->{self_alias}.username,\"@\",domain.domain)" } ,
};
},
{ join_type => 'inner' },
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->has_many(
"location_mappings",

@ -1,66 +0,0 @@
package NGCP::Schema::Result::sipwise_mam;
use strict;
use warnings;
use Scalar::Util qw(blessed);
use parent 'DBIx::Class::Core';
our $VERSION = '2.007';
__PACKAGE__->load_components(
"InflateColumn::DateTime",
"Helper::Row::ToJSON",
"+NGCP::Schema::InflateColumn::DateTime::EpochMilli",
);
__PACKAGE__->table("prosody.sipwise_mam");
__PACKAGE__->add_columns(
"id",
{
data_type => "integer",
extra => { unsigned => 1 },
is_auto_increment => 1,
is_nullable => 0,
},
"username",
{
data_type => "varchar",
is_nullable => 0,
size => 255
},
"key",
{
data_type => "binary",
is_nullable => 0,
size => 16
},
"stanza",
{
data_type => "text",
is_nullable => 1
},
"epoch",
{
data_type => "integer",
is_nullable => 0,
},
"with",
{
data_type => "varchar",
is_nullable => 1,
size => 255
},
);
__PACKAGE__->set_primary_key("id");
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
Loading…
Cancel
Save