From 4eb0cb594c35f6c5310cccdba1aee289793b090b Mon Sep 17 00:00:00 2001 From: Kirill Solomko Date: Tue, 24 Jun 2025 16:01:33 +0200 Subject: [PATCH] MT#63047 phonebook views add 'own' field * add own field to contract and subscriber phonebook views to identify if the entry was created by the subscriber/contract_id or inherited. Change-Id: I7053609e3bdac5e7da0505a1f35b1043e0d8ac2b --- lib/NGCP/Schema/Result/v_contract_phonebook.pm | 2 ++ lib/NGCP/Schema/Result/v_contract_reseller_phonebook.pm | 2 ++ lib/NGCP/Schema/Result/v_contract_shared_phonebook.pm | 2 ++ lib/NGCP/Schema/Result/v_subscriber_contract_phonebook.pm | 2 ++ lib/NGCP/Schema/Result/v_subscriber_phonebook.pm | 2 ++ lib/NGCP/Schema/Result/v_subscriber_reseller_phonebook.pm | 2 ++ 6 files changed, 12 insertions(+) diff --git a/lib/NGCP/Schema/Result/v_contract_phonebook.pm b/lib/NGCP/Schema/Result/v_contract_phonebook.pm index 8c1416de..86d8b21b 100644 --- a/lib/NGCP/Schema/Result/v_contract_phonebook.pm +++ b/lib/NGCP/Schema/Result/v_contract_phonebook.pm @@ -30,6 +30,8 @@ __PACKAGE__->add_columns( { data_type => "varchar", is_nullable => 0, size => 255 }, "shared", { data_type => "tinyint", default_value => 0, is_nullable => 0 }, + "own", + { data_type => "tinyint", default_value => 0, is_nullable => 0 }, ); __PACKAGE__->belongs_to( diff --git a/lib/NGCP/Schema/Result/v_contract_reseller_phonebook.pm b/lib/NGCP/Schema/Result/v_contract_reseller_phonebook.pm index 49bd4421..b65c9984 100644 --- a/lib/NGCP/Schema/Result/v_contract_reseller_phonebook.pm +++ b/lib/NGCP/Schema/Result/v_contract_reseller_phonebook.pm @@ -28,6 +28,8 @@ __PACKAGE__->add_columns( { data_type => "varchar", is_nullable => 0, size => 255 }, "number", { data_type => "varchar", is_nullable => 0, size => 255 }, + "own", + { data_type => "tinyint", default_value => 0, is_nullable => 0 }, ); __PACKAGE__->belongs_to( diff --git a/lib/NGCP/Schema/Result/v_contract_shared_phonebook.pm b/lib/NGCP/Schema/Result/v_contract_shared_phonebook.pm index d0c91aa7..2534c712 100644 --- a/lib/NGCP/Schema/Result/v_contract_shared_phonebook.pm +++ b/lib/NGCP/Schema/Result/v_contract_shared_phonebook.pm @@ -30,6 +30,8 @@ __PACKAGE__->add_columns( { data_type => "varchar", is_nullable => 0, size => 255 }, "shared", { data_type => "tinyint", default_value => 0, is_nullable => 0 }, + "own", + { data_type => "tinyint", default_value => 0, is_nullable => 0 }, ); __PACKAGE__->belongs_to( diff --git a/lib/NGCP/Schema/Result/v_subscriber_contract_phonebook.pm b/lib/NGCP/Schema/Result/v_subscriber_contract_phonebook.pm index dc5a5a05..009ebbf4 100644 --- a/lib/NGCP/Schema/Result/v_subscriber_contract_phonebook.pm +++ b/lib/NGCP/Schema/Result/v_subscriber_contract_phonebook.pm @@ -30,6 +30,8 @@ __PACKAGE__->add_columns( { data_type => "varchar", is_nullable => 0, size => 255 }, "shared", { data_type => "tinyint", default_value => 0, is_nullable => 0 }, + "own", + { data_type => "tinyint", default_value => 0, is_nullable => 0 }, ); __PACKAGE__->belongs_to( diff --git a/lib/NGCP/Schema/Result/v_subscriber_phonebook.pm b/lib/NGCP/Schema/Result/v_subscriber_phonebook.pm index 83f28dda..5f6f8a54 100644 --- a/lib/NGCP/Schema/Result/v_subscriber_phonebook.pm +++ b/lib/NGCP/Schema/Result/v_subscriber_phonebook.pm @@ -30,6 +30,8 @@ __PACKAGE__->add_columns( { data_type => "varchar", is_nullable => 0, size => 255 }, "shared", { data_type => "tinyint", default_value => 0, is_nullable => 0 }, + "own", + { data_type => "tinyint", default_value => 0, is_nullable => 0 }, ); __PACKAGE__->belongs_to( diff --git a/lib/NGCP/Schema/Result/v_subscriber_reseller_phonebook.pm b/lib/NGCP/Schema/Result/v_subscriber_reseller_phonebook.pm index dc046f2d..8a9bd558 100644 --- a/lib/NGCP/Schema/Result/v_subscriber_reseller_phonebook.pm +++ b/lib/NGCP/Schema/Result/v_subscriber_reseller_phonebook.pm @@ -30,6 +30,8 @@ __PACKAGE__->add_columns( { data_type => "varchar", is_nullable => 0, size => 255 }, "shared", { data_type => "tinyint", default_value => 0, is_nullable => 0 }, + "own", + { data_type => "tinyint", default_value => 0, is_nullable => 0 }, ); __PACKAGE__->belongs_to(