Fix VKey reconstruction issue in BillingEvent (#805)

* Fix VKey reconstruction issue in BillingEvent

* Rebase on head
This commit is contained in:
Shicong Huang 2020-09-23 19:04:58 -04:00 committed by GitHub
parent 7bcd15a19a
commit aa217c2fcd
5 changed files with 63 additions and 152 deletions

View file

@ -0,0 +1,21 @@
-- Copyright 2020 The Nomulus Authors. All Rights Reserved.
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
alter table "BillingCancellation" alter column billing_cancellation_id drop default;
alter table "BillingEvent" alter column billing_event_id drop default;
alter table "BillingRecurrence" alter column billing_recurrence_id drop default;
drop sequence "BillingCancellation_billing_cancellation_id_seq";
drop sequence "BillingEvent_billing_event_id_seq";
drop sequence "BillingRecurrence_billing_recurrence_id_seq";

View file

@ -30,7 +30,7 @@ create sequence temp_history_id_sequence start 1 increment 50;
);
create table "BillingCancellation" (
billing_cancellation_id bigserial not null,
billing_cancellation_id int8 not null,
registrar_id text not null,
domain_history_revision_id int8 not null,
domain_repo_id text not null,
@ -45,7 +45,7 @@ create sequence temp_history_id_sequence start 1 increment 50;
);
create table "BillingEvent" (
billing_event_id bigserial not null,
billing_event_id int8 not null,
registrar_id text not null,
domain_history_revision_id int8 not null,
domain_repo_id text not null,
@ -64,7 +64,7 @@ create sequence temp_history_id_sequence start 1 increment 50;
);
create table "BillingRecurrence" (
billing_recurrence_id bigserial not null,
billing_recurrence_id int8 not null,
registrar_id text not null,
domain_history_revision_id int8 not null,
domain_repo_id text not null,

View file

@ -73,25 +73,6 @@ CREATE TABLE public."BillingCancellation" (
);
--
-- Name: BillingCancellation_billing_cancellation_id_seq; Type: SEQUENCE; Schema: public; Owner: -
--
CREATE SEQUENCE public."BillingCancellation_billing_cancellation_id_seq"
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
--
-- Name: BillingCancellation_billing_cancellation_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
--
ALTER SEQUENCE public."BillingCancellation_billing_cancellation_id_seq" OWNED BY public."BillingCancellation".billing_cancellation_id;
--
-- Name: BillingEvent; Type: TABLE; Schema: public; Owner: -
--
@ -115,25 +96,6 @@ CREATE TABLE public."BillingEvent" (
);
--
-- Name: BillingEvent_billing_event_id_seq; Type: SEQUENCE; Schema: public; Owner: -
--
CREATE SEQUENCE public."BillingEvent_billing_event_id_seq"
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
--
-- Name: BillingEvent_billing_event_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
--
ALTER SEQUENCE public."BillingEvent_billing_event_id_seq" OWNED BY public."BillingEvent".billing_event_id;
--
-- Name: BillingRecurrence; Type: TABLE; Schema: public; Owner: -
--
@ -152,25 +114,6 @@ CREATE TABLE public."BillingRecurrence" (
);
--
-- Name: BillingRecurrence_billing_recurrence_id_seq; Type: SEQUENCE; Schema: public; Owner: -
--
CREATE SEQUENCE public."BillingRecurrence_billing_recurrence_id_seq"
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
--
-- Name: BillingRecurrence_billing_recurrence_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
--
ALTER SEQUENCE public."BillingRecurrence_billing_recurrence_id_seq" OWNED BY public."BillingRecurrence".billing_recurrence_id;
--
-- Name: ClaimsEntry; Type: TABLE; Schema: public; Owner: -
--
@ -1025,27 +968,6 @@ CREATE SEQUENCE public.temp_history_id_sequence
CACHE 1;
--
-- Name: BillingCancellation billing_cancellation_id; Type: DEFAULT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."BillingCancellation" ALTER COLUMN billing_cancellation_id SET DEFAULT nextval('public."BillingCancellation_billing_cancellation_id_seq"'::regclass);
--
-- Name: BillingEvent billing_event_id; Type: DEFAULT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."BillingEvent" ALTER COLUMN billing_event_id SET DEFAULT nextval('public."BillingEvent_billing_event_id_seq"'::regclass);
--
-- Name: BillingRecurrence billing_recurrence_id; Type: DEFAULT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."BillingRecurrence" ALTER COLUMN billing_recurrence_id SET DEFAULT nextval('public."BillingRecurrence_billing_recurrence_id_seq"'::regclass);
--
-- Name: ClaimsList revision_id; Type: DEFAULT; Schema: public; Owner: -
--