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

Support PostgreSQL #7736

Merged
merged 22 commits into from
Aug 11, 2023
Merged

Support PostgreSQL #7736

merged 22 commits into from
Aug 11, 2023

Conversation

La0
Copy link
Collaborator

@La0 La0 commented Jul 5, 2023

This brings support for PostgreSQL into Treeherder, while keeping it compatible with Mysql:

  • add postgres:15 in docker compsoe stack
  • add psycopg2-binary python requirement
  • support postgres in settings (only mysql was compatible with force-applied settings)
  • support both postgres & mysql in the handwritten migrations (mostly indices).
  • run unit tests on CI against mysql then postgres

To test it locally:

docker-compose up -d postgres
export DATABASE_URL=psql://postgres:mozilla1234@localhost/treeherder
./manage.py migrate

@La0 La0 self-assigned this Jul 5, 2023
@La0 La0 requested a review from a team as a code owner July 5, 2023 14:50
@vrigal vrigal force-pushed the postgres-support branch 5 times, most recently from 1f354d5 to a9ab4ee Compare July 13, 2023 11:22
@La0 La0 requested a review from Archaeopteryx July 25, 2023 11:51
@Archaeopteryx Archaeopteryx self-requested a review July 26, 2023 15:56
@Archaeopteryx Archaeopteryx merged commit 913260c into mozilla:master Aug 11, 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.

4 participants