Skip to content
This repository has been archived by the owner on Jul 14, 2023. It is now read-only.

Multiple Postgres Database Projects cause reference schema to be overwrtten #325

Open
dus2001 opened this issue Mar 18, 2023 · 2 comments
Open
Assignees

Comments

@dus2001
Copy link

dus2001 commented Mar 18, 2023

Hello,

Multiple projects being deployed to same postgres database on Cloud Foundry cause the reference schema to be overwritten and dropping of CDS views for other project.

I have two projects both deploying to same postgres database in cloud foundry. At the time of deploy I am not able to specify the dbname. This causes both projects to refer to same database. The reference schema provided in the package.json of each project is not honored. This particular code is not going inside the if statement.

image

Each MTA file deployed on cloud foundry work independently. But the moment I deploy the second MTA the CDS views for the first MTA are getting deleted due to shared reference schema. And hence the first MTA stops function after second MTA deploy.

Please help

@dus2001
Copy link
Author

dus2001 commented Mar 19, 2023

Workaround for above problem: Get the script for the deploy generated view from the postgres console. Save the scripts.

Every time a deploy wipes out the views, regenerate them using the saved script. Remember to get an udpated script every time the view updated for a project.

@dus2001
Copy link
Author

dus2001 commented Apr 1, 2023

Any update on this please? I have multiple CAP projects in postgres DB and deploy a project causes the views of other projects to be dopped.

@mikezaschka mikezaschka self-assigned this Apr 4, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants