Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix postgres scripts for monetization #8974

Open
wants to merge 1 commit into
base: 4.3.0
Choose a base branch
from

Conversation

Chilliwiddit
Copy link
Contributor

Purpose

To provide users with the correct Postgres script for setting up monetization

Goals

Prevent issues with setting up a Postgres database for monetization

Approach

Converted the MYSQL script to postgres

User stories

Users can copy and create a postgres SQL script which they can then execute while setting up their database

Documentation

Monetization of APIs

);

CREATE TABLE IF NOT EXISTS AM_POLICY_PLAN_MAPPING (
POLICY_UUID VARCHAR(256),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shall we double check the column name POLICY_UUID? Both POLICY_ID and POLICY_UUID are there in the old version

);

CREATE TABLE IF NOT EXISTS AM_MONETIZATION_PLATFORM_CUSTOMERS (
ID SERIAL PRIMARY KEY,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like POLICY_ID is not present here? Shall we double check that

);

CREATE TABLE IF NOT EXISTS AM_MONETIZATION_PLATFORM_CUSTOMERS (
ID SERIAL PRIMARY KEY,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ID has an AUTO_INCREMENT in the old version. Shall we check that?

);

CREATE TABLE IF NOT EXISTS AM_MONETIZATION_SHARED_CUSTOMERS (
ID SERIAL PRIMARY KEY,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

POLICY_ID is missing

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's check the order of columns, and if all the columns present in the old version is present in the new version - for all the tables

);

CREATE TABLE IF NOT EXISTS AM_MONETIZATION_SUBSCRIPTIONS (
ID SERIAL PRIMARY KEY,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

POLICY_ID is not present

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants