cds-dbm
cds-dbm copied to clipboard
Multiple Postgres Database Projects cause reference schema to be overwrtten
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.

Please help
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.
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.