From 84b9347a79f98a7346fea851fec13598ba895e16 Mon Sep 17 00:00:00 2001 From: Flaviu Mates Date: Thu, 21 Nov 2019 15:40:30 +0200 Subject: [PATCH] TT#70856 - Schema changes for one-time fee * modify the schema to support the newly added one-time fee column Change-Id: I78c57feb1a32454a5fc2bb6dca93cb67359ffa50 --- lib/NGCP/Schema/Result/billing_fees.pm | 16 ++++++++++++++++ lib/NGCP/Schema/Result/billing_fees_history.pm | 16 ++++++++++++++++ lib/NGCP/Schema/Result/billing_fees_raw.pm | 16 ++++++++++++++++ 3 files changed, 48 insertions(+) diff --git a/lib/NGCP/Schema/Result/billing_fees.pm b/lib/NGCP/Schema/Result/billing_fees.pm index 61aab28d..76bcf29f 100644 --- a/lib/NGCP/Schema/Result/billing_fees.pm +++ b/lib/NGCP/Schema/Result/billing_fees.pm @@ -97,6 +97,22 @@ __PACKAGE__->add_columns( extra => { list => [ "regex_longest_pattern", "regex_longest_match", "prefix", "exact_destination", ] }, is_nullable => 0, }, + "onpeak_extra_rate", + { data_type => "double precision", default_value => 0, is_nullable => 0 }, + "onpeak_extra_second", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_nullable => 1, + }, + "offpeak_extra_rate", + { data_type => "double precision", default_value => 0, is_nullable => 0 }, + "offpeak_extra_second", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_nullable => 1, + }, ); __PACKAGE__->set_primary_key("id"); diff --git a/lib/NGCP/Schema/Result/billing_fees_history.pm b/lib/NGCP/Schema/Result/billing_fees_history.pm index efac4d60..11915122 100644 --- a/lib/NGCP/Schema/Result/billing_fees_history.pm +++ b/lib/NGCP/Schema/Result/billing_fees_history.pm @@ -99,6 +99,22 @@ __PACKAGE__->add_columns( extra => { list => [ "regex_longest_pattern", "regex_longest_match", "prefix", "exact_destination", ] }, is_nullable => 0, }, + "onpeak_extra_rate", + { data_type => "double precision", default_value => 0, is_nullable => 0 }, + "onpeak_extra_second", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_nullable => 1, + }, + "offpeak_extra_rate", + { data_type => "double precision", default_value => 0, is_nullable => 0 }, + "offpeak_extra_second", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_nullable => 1, + }, ); __PACKAGE__->set_primary_key("id"); diff --git a/lib/NGCP/Schema/Result/billing_fees_raw.pm b/lib/NGCP/Schema/Result/billing_fees_raw.pm index 59ead149..cda438b0 100644 --- a/lib/NGCP/Schema/Result/billing_fees_raw.pm +++ b/lib/NGCP/Schema/Result/billing_fees_raw.pm @@ -97,6 +97,22 @@ __PACKAGE__->add_columns( extra => { list => [ "regex_longest_pattern", "regex_longest_match", "prefix", "exact_destination", ] }, is_nullable => 0, }, + "onpeak_extra_rate", + { data_type => "double precision", default_value => 0, is_nullable => 0 }, + "onpeak_extra_second", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_nullable => 1, + }, + "offpeak_extra_rate", + { data_type => "double precision", default_value => 0, is_nullable => 0 }, + "offpeak_extra_second", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_nullable => 1, + }, ); __PACKAGE__->set_primary_key("id");