From f340b735c1db92a950b50b0912a249e7aae69e41 Mon Sep 17 00:00:00 2001 From: Rachel Guan Date: Thu, 31 Mar 2022 12:27:32 -0400 Subject: [PATCH] Add default value to renewal_price_behavior (#1575) * Add default value to renewal_price_behavior * Change DEFAULT_PRICE to DEFAULT --- .../sql/er_diagram/brief_er_diagram.html | 14 +++++++------- .../sql/er_diagram/full_er_diagram.html | 18 +++++++++--------- ...d_renewal_columns_to_billing_recurrence.sql | 2 +- .../resources/sql/schema/nomulus.golden.sql | 2 +- 4 files changed, 18 insertions(+), 18 deletions(-) diff --git a/db/src/main/resources/sql/er_diagram/brief_er_diagram.html b/db/src/main/resources/sql/er_diagram/brief_er_diagram.html index 47e4e327d..d4fef34bc 100644 --- a/db/src/main/resources/sql/er_diagram/brief_er_diagram.html +++ b/db/src/main/resources/sql/er_diagram/brief_er_diagram.html @@ -261,7 +261,7 @@ td.section { generated on - 2022-03-28 20:56:27.57848 + 2022-03-30 20:53:20.574091 last flyway file @@ -274,19 +274,19 @@ td.section { SchemaCrawler_Diagram - + generated by - + SchemaCrawler 16.10.1 - + generated on - - 2022-03-28 20:56:27.57848 + + 2022-03-30 20:53:20.574091 - + allocationtoken_a08ccbef diff --git a/db/src/main/resources/sql/er_diagram/full_er_diagram.html b/db/src/main/resources/sql/er_diagram/full_er_diagram.html index 5a75f9074..0c9608523 100644 --- a/db/src/main/resources/sql/er_diagram/full_er_diagram.html +++ b/db/src/main/resources/sql/er_diagram/full_er_diagram.html @@ -261,7 +261,7 @@ td.section {
generated on - 2022-03-28 20:56:25.532932 + 2022-03-30 20:53:18.15953
last flyway file @@ -274,19 +274,19 @@ td.section { SchemaCrawler_Diagram - + generated by - + SchemaCrawler 16.10.1 - + generated on - - 2022-03-28 20:56:25.532932 + + 2022-03-30 20:53:18.15953 - + allocationtoken_a08ccbef @@ -652,7 +652,7 @@ td.section { - text + text not null renewal_price_currency @@ -7395,7 +7395,7 @@ td.section {
renewal_price_behavior - text + text not null
diff --git a/db/src/main/resources/sql/flyway/V115__add_renewal_columns_to_billing_recurrence.sql b/db/src/main/resources/sql/flyway/V115__add_renewal_columns_to_billing_recurrence.sql index 2f43f50bc..e1832bcac 100644 --- a/db/src/main/resources/sql/flyway/V115__add_renewal_columns_to_billing_recurrence.sql +++ b/db/src/main/resources/sql/flyway/V115__add_renewal_columns_to_billing_recurrence.sql @@ -12,6 +12,6 @@ -- See the License for the specific language governing permissions and -- limitations under the License. -alter table "BillingRecurrence" add column renewal_price_behavior text; +alter table "BillingRecurrence" add column renewal_price_behavior text default 'DEFAULT' not null; alter table "BillingRecurrence" add column renewal_price_currency text; alter table "BillingRecurrence" add column renewal_price_amount numeric(19, 2); diff --git a/db/src/main/resources/sql/schema/nomulus.golden.sql b/db/src/main/resources/sql/schema/nomulus.golden.sql index 25a37da00..b2246f9e0 100644 --- a/db/src/main/resources/sql/schema/nomulus.golden.sql +++ b/db/src/main/resources/sql/schema/nomulus.golden.sql @@ -117,7 +117,7 @@ CREATE TABLE public."BillingRecurrence" ( domain_name text NOT NULL, recurrence_end_time timestamp with time zone, recurrence_time_of_year text, - renewal_price_behavior text, + renewal_price_behavior text DEFAULT 'DEFAULT'::text NOT NULL, renewal_price_currency text, renewal_price_amount numeric(19,2) );