Flyway files for PackagePromotion table (#1746)

* Include missing file

* Fix merge conflicts

* make package price non null
This commit is contained in:
sarahcaseybot 2022-08-19 12:53:58 -04:00 committed by GitHub
parent 57c0c4084a
commit aea98f4bc3
5 changed files with 2580 additions and 2286 deletions

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -122,3 +122,4 @@ V121__drop_sql_checkpoint_and_txn.sql
V122__add_current_package_token_to_domain.sql
V123__drop_unused_columns_in_billing_cancellation_table.sql
V124__add_console_user.sql
V125__create_package_promotion.sql

View file

@ -0,0 +1,28 @@
-- Copyright 2022 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.
create table "PackagePromotion" (
package_promotion_id int8 not null,
last_notification_sent timestamptz,
max_creates int4 not null,
max_domains int4 not null,
next_billing_date timestamptz not null,
package_price_amount numeric(19, 2) not null,
package_price_currency text not null,
token text not null,
primary key (package_promotion_id)
);
create index IDXlg6a5tp70nch9cp0gc11brc5o on "PackagePromotion" (token);

View file

@ -646,6 +646,22 @@ CREATE TABLE public."Lock" (
);
--
-- Name: PackagePromotion; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public."PackagePromotion" (
package_promotion_id bigint NOT NULL,
last_notification_sent timestamp with time zone,
max_creates integer NOT NULL,
max_domains integer NOT NULL,
next_billing_date timestamp with time zone NOT NULL,
package_price_amount numeric(19,2) NOT NULL,
package_price_currency text NOT NULL,
token text NOT NULL
);
--
-- Name: PollMessage; Type: TABLE; Schema: public; Owner: -
--
@ -1264,6 +1280,14 @@ ALTER TABLE ONLY public."Lock"
ADD CONSTRAINT "Lock_pkey" PRIMARY KEY (resource_name, scope);
--
-- Name: PackagePromotion PackagePromotion_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."PackagePromotion"
ADD CONSTRAINT "PackagePromotion_pkey" PRIMARY KEY (package_promotion_id);
--
-- Name: PollMessage PollMessage_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
@ -1766,6 +1790,13 @@ CREATE INDEX idxl49vydnq0h5j1piefwjy4i8er ON public."Host" USING btree (current_
CREATE INDEX idxl8vobbecsd32k4ksavdfx8st6 ON public."BillingCancellation" USING btree (domain_repo_id);
--
-- Name: idxlg6a5tp70nch9cp0gc11brc5o; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX idxlg6a5tp70nch9cp0gc11brc5o ON public."PackagePromotion" USING btree (token);
--
-- Name: idxlrq7v63pc21uoh3auq6eybyhl; Type: INDEX; Schema: public; Owner: -
--