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

Fix autotest creating PostgreSQL database before install #34736

Merged
merged 1 commit into from
Oct 27, 2022

Conversation

vitormattos
Copy link
Contributor

@vitormattos vitormattos commented Oct 22, 2022

Problem:

Failed to connect to the database: An exception occurred in the driver: SQLSTATE[08006] [7] FATAL:  database "oc_autotest" does not exist

Broked test:
https://drone.nextcloud.com/nextcloud/server/24833/16/5
Identified in the PR: #34645

MySQL and other databases create the database before run the tests, only PostgreSQL not. I fixed following the documentation of official PostgreSQL Docker image:

https://github.com/docker-library/docs/blob/master/postgres/README.md#postgres_db

@vitormattos vitormattos self-assigned this Oct 22, 2022
@vitormattos vitormattos added this to the Nextcloud 26 milestone Oct 22, 2022
Copy link
Contributor

@szaimen szaimen left a comment

Choose a reason for hiding this comment

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

LGTM

@szaimen szaimen requested review from a team, ArtificialOwl and icewind1991 and removed request for a team October 24, 2022 16:48
@szaimen
Copy link
Contributor

szaimen commented Oct 24, 2022

/backport to stable25

Copy link
Contributor

@miaulalala miaulalala left a comment

Choose a reason for hiding this comment

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

🐘

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants