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

add db schema #1839

Merged
merged 9 commits into from Jun 22, 2023
Merged

add db schema #1839

merged 9 commits into from Jun 22, 2023

Conversation

Pierre-Louis-Boutruche
Copy link
Contributor

@Pierre-Louis-Boutruche Pierre-Louis-Boutruche commented Apr 18, 2023

I made a mistake, I closed this issue: #1799

Description
This change will allow the user to use a schema other than public in Postgres.

Fixes # (issue)

Changes
I added this: schema + '.history' if schema else 'history', in the register_composite. I modified some function parameters to take into account the schema.
I added DATABASE_SCHEMA in the environment variables.

Screenshots
dockercompose
insomia2
insomia3
insomiaPNG
powershell
list**

@Pierre-Louis-Boutruche
Copy link
Contributor Author

I modified the schema.sql file, so that it searches only in the current schema.

Copy link
Member

@satterly satterly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. 👍

@satterly satterly merged commit 2fdea8f into alerta:master Jun 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants