-
Notifications
You must be signed in to change notification settings - Fork 400
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
base: 4.3.0
Are you sure you want to change the base?
Conversation
); | ||
|
||
CREATE TABLE IF NOT EXISTS AM_POLICY_PLAN_MAPPING ( | ||
POLICY_UUID VARCHAR(256), |
There was a problem hiding this comment.
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, |
There was a problem hiding this comment.
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, |
There was a problem hiding this comment.
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, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
POLICY_ID is missing
There was a problem hiding this comment.
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, |
There was a problem hiding this comment.
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
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