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

Create a SQL database and appropriate Schema in GCP #184

Open
anighanta opened this issue Jun 6, 2022 · 3 comments
Open

Create a SQL database and appropriate Schema in GCP #184

anighanta opened this issue Jun 6, 2022 · 3 comments
Assignees
Labels
enhancement New feature or request GCP GCP support

Comments

@anighanta
Copy link
Contributor

anighanta commented Jun 6, 2022

We have to have a SQL Postgres database with appropriate tables withe following schema available on GCP in-order to make ERT compatible with GCP.

Database name : exchange_rate

Table1:
name: address_book
fields: long:expiration_time, json:address_book, varchar:network_name

Table2:
name: exchange_rate
fields: long:expiration_time, json:exchange_rate_file

Table3:
name: midnight_rate
fields: long:expiration_time, json:exchange_rate_file

Table4:
name: queried_rates
fields: long:expiration_time, json:queried_rates

@anighanta anighanta added enhancement New feature or request GCP GCP support labels Jun 6, 2022
@steven-sheehy
Copy link
Member

Should use snake_case for database name and field names.

@anighanta
Copy link
Contributor Author

realized it is better to use postgres instead of Mysql server on GCP Cloud SQL as flyway currently requires additional jar to support jdbc connections to mysql server and so json datatype in postgres :D

@anighanta anighanta self-assigned this Jun 21, 2022
@anighanta
Copy link
Contributor Author

Was able to create an instance which I used for a poc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request GCP GCP support
Projects
None yet
Development

No branches or pull requests

2 participants