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

Error Deploy in another Schema #209

Open
YoshiakiToma opened this issue Jun 20, 2022 · 6 comments
Open

Error Deploy in another Schema #209

YoshiakiToma opened this issue Jun 20, 2022 · 6 comments

Comments

@YoshiakiToma
Copy link

YoshiakiToma commented Jun 20, 2022

In package.json is possible deploy in another schema at change de config, but when it is generate build mta, the archive generated schema "default".

{
    ...
    "cds": {
            "migrations": {
			"db": {
				"schema": {
					"default": "S4Q", // Here Change
					"clone": "_cdsdbm_clone",
					"reference": "_cdsdbm_ref"
				},
				"deploy": {
					"tmpFile": "tmp/_autodeploy.json",
					"undeployFile": "db/undeploy.json"
				}
			}
		}
     }
}
@gregorwolf
Copy link
Collaborator

Hi @YoshiakiToma,

can you please improve the formatting for better readability.

@YoshiakiToma
Copy link
Author

YoshiakiToma commented Jun 20, 2022

This is my config JSON, sorry for I can't use block code of github. @gregorwolf

image

@gregorwolf
Copy link
Collaborator

You can. Just use tripple backticks.

@YoshiakiToma
Copy link
Author

@gregorwolf Sorry, I send image wrong.

This is correct image, I tried change schema, but the tables were deploy in schema public.
image

@YoshiakiToma
Copy link
Author

When you see in archive package.json in folder gen/db, the config schema is public.

image

@alessandro-pavan
Copy link

alessandro-pavan commented Mar 2, 2023

Hi,
I have the same issue. I need to deploy my database on a different schema from "public". How I can achieve that?

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

3 participants